diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-20 11:26:58 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-20 11:26:58 -0800 |
commit | 8ab225e2cd3f9393bdd592654811a5275440a342 (patch) | |
tree | c0136d1bfb24e39e39b0279190d8c3201d422ed8 | |
parent | 45a8c652b81e2e357c8537f7bb21bd671ce67893 (diff) | |
download | dsub-8ab225e2cd3f9393bdd592654811a5275440a342.tar.gz dsub-8ab225e2cd3f9393bdd592654811a5275440a342.tar.bz2 dsub-8ab225e2cd3f9393bdd592654811a5275440a342.zip |
Fix Show Artist for tags
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 1 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index 8e9dbbb9..e4cb3d81 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -1110,6 +1110,7 @@ public class SubsonicFragment extends Fragment { Bundle args = new Bundle();
args.putString(Constants.INTENT_EXTRA_NAME_ID, entry.getParent());
args.putString(Constants.INTENT_EXTRA_NAME_NAME, entry.getArtist());
+ args.putBoolean(Constants.INTENT_EXTRA_NAME_ARTIST, true);
fragment.setArguments(args);
replaceFragment(fragment, getRootId(), true);
diff --git a/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java b/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java index e58427f5..94aaa8c4 100644 --- a/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java +++ b/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java @@ -33,6 +33,12 @@ public class MusicDirectoryEntryParser extends AbstractParser { MusicDirectory.Entry entry = new MusicDirectory.Entry(); entry.setId(get("id")); entry.setParent(get("parent")); + if(entry.getParent() == null) { + entry.setParent(get("albumId")); + if(entry.getParent() == null) { + entry.setParent(get("artistId")); + } + } entry.setTitle(get("title")); if(entry.getTitle() == null) { entry.setTitle(get("name")); |