diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-31 09:16:33 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-31 09:16:33 -0700 |
commit | d74b188f3cf3a5e76905716497e0a6a9482f95f3 (patch) | |
tree | 6da1928f3d59d96b546660e5d6c2985ceb59ff11 /src/github/daneren2005 | |
parent | 83b20e52bbd67b39db5349b68bde5e766aaebbbc (diff) | |
download | dsub-d74b188f3cf3a5e76905716497e0a6a9482f95f3.tar.gz dsub-d74b188f3cf3a5e76905716497e0a6a9482f95f3.tar.bz2 dsub-d74b188f3cf3a5e76905716497e0a6a9482f95f3.zip |
More improvements to GenericSongUpdater for tag browsing
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/service/CachedMusicService.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/github/daneren2005/dsub/service/CachedMusicService.java b/src/github/daneren2005/dsub/service/CachedMusicService.java index e4a11f9c..be788596 100644 --- a/src/github/daneren2005/dsub/service/CachedMusicService.java +++ b/src/github/daneren2005/dsub/service/CachedMusicService.java @@ -1244,19 +1244,22 @@ public class CachedMusicService implements MusicService { public abstract void updateResult(Entry result); public void execute() { - String cacheName; + String cacheName, parent; if(Util.isTagBrowsing(context, musicService.getInstance(context))) { - // If using id's, we are starring songs and need to use album listings - if(entry.isAlbum()) { - cacheName = "album"; - } else { + // If starring album, needs to reference artist instead + if(entry.isDirectory()) { cacheName = "artist"; + parent = entry.getArtistId(); + } else { + cacheName = "album"; + parent = entry.getAlbumId(); } } else { cacheName = "directory"; + parent = entry.getParent(); } - new MusicDirectoryUpdater(context, cacheName, entry.getParent()) { + new MusicDirectoryUpdater(context, cacheName, parent) { @Override public boolean checkResult(Entry check) { return GenericSongUpdater.this.checkResult(check); |