From b308d1ad77a9bd5d5c69dd46b39ff7c0ff4b461e Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 10 Jan 2016 22:15:14 -0800 Subject: Fixes #621 Fix Madsonic labeling songs as albums --- .../java/github/daneren2005/dsub/service/parser/AlbumListParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/src/main') 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(); -- cgit v1.2.3