aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-01-10 22:15:14 -0800
committerScott Jackson <daneren2005@gmail.com>2016-01-10 22:15:14 -0800
commitb308d1ad77a9bd5d5c69dd46b39ff7c0ff4b461e (patch)
tree34af26d68c8254be44a608497ac083c6baecc8dd /app/src
parentfc3be2c41dad7671a2e6c0841accf881ca71c101 (diff)
downloaddsub-b308d1ad77a9bd5d5c69dd46b39ff7c0ff4b461e.tar.gz
dsub-b308d1ad77a9bd5d5c69dd46b39ff7c0ff4b461e.tar.bz2
dsub-b308d1ad77a9bd5d5c69dd46b39ff7c0ff4b461e.zip
Fixes #621 Fix Madsonic labeling songs as albums
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/parser/AlbumListParser.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/parser/AlbumListParser.java b/app/src/main/java/github/daneren2005/dsub/service/parser/AlbumListParser.java
index 773c241b..213cc6b3 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/parser/AlbumListParser.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/parser/AlbumListParser.java
@@ -46,7 +46,9 @@ public class AlbumListParser extends MusicDirectoryEntryParser {
String name = getElementName();
if ("album".equals(name)) {
MusicDirectory.Entry entry = parseEntry("");
- entry.setDirectory(true);
+ if(get("isDir") == null) {
+ entry.setDirectory(true);
+ }
dir.addChild(entry);
} else if ("error".equals(name)) {
handleError();