diff options
Diffstat (limited to 'src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java')
-rw-r--r-- | src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java b/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java index a5500505..9e5b48b4 100644 --- a/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java +++ b/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java @@ -81,7 +81,11 @@ public class MusicDirectoryParser extends MusicDirectoryEntryParser { } else if ("directory".equals(name) || "artist".equals(name) || ("album".equals(name) && !isArtist)) { dir.setName(get("name")); dir.setId(get("id")); - dir.setParent(get("parent")); + if(Util.isTagBrowsing(context, instance)) { + dir.setParent(get("artistId")); + } else { + dir.setParent(get("parent")); + } isArtist = true; } else if("album".equals(name)) { Entry entry = parseEntry(artist); |