aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2022-03-31 17:41:01 -0700
committerScott Jackson <daneren2005@gmail.com>2022-03-31 17:41:01 -0700
commite001afa20e719f4e08f0b039f4f8f1830f8b02ab (patch)
tree647b801e9e8b0179a7ae0cc862558a65015dd2f0
parent3d4675600f1c70f4c52f6ba800b2eacd62e80b00 (diff)
downloaddsub-e001afa20e719f4e08f0b039f4f8f1830f8b02ab.tar.gz
dsub-e001afa20e719f4e08f0b039f4f8f1830f8b02ab.tar.bz2
dsub-e001afa20e719f4e08f0b039f4f8f1830f8b02ab.zip
#1093 Fix all songs in Airsonic being located in the root directory since it returns backslashes instead of forward slashes in the entry's path
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/FileUtil.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java b/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
index e581173b..9fb39692 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
@@ -694,6 +694,8 @@ public class FileUtil {
return "";
}
+ // Airsonic 11 appears to be returning backslashes instead of always forcing path with forward slashes
+ path = path.replace("\\", "/");
for (String s : FILE_SYSTEM_UNSAFE_DIR) {
path = path.replace(s, "-");
}