diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-03 07:40:37 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-03 07:40:37 -0800 |
commit | 360aee33c83c03f795a11513a405f084ab7d0542 (patch) | |
tree | 0b476a9ad42bacadfcd5dbd52346382191acdd0c /src | |
parent | e3cd26b1aa91004e298257c73d377dd88ab76944 (diff) | |
download | dsub-360aee33c83c03f795a11513a405f084ab7d0542.tar.gz dsub-360aee33c83c03f795a11513a405f084ab7d0542.tar.bz2 dsub-360aee33c83c03f795a11513a405f084ab7d0542.zip |
Don't sync podcasts in most recent adapter (lists are huge)
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java b/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java index 3ac1ca23..df989bb3 100644 --- a/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java +++ b/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java @@ -67,13 +67,15 @@ public class MostRecentSyncAdapter extends SubsonicSyncAdapter { } else {
for(MusicDirectory.Entry album: albumList.getChildren()) {
if(!syncedList.contains(album.getId())) {
- try {
- downloadRecursively(null, musicService.getMusicDirectory(album.getId(), album.getTitle(), true, context, null), context, false);
- syncedList.add(album.getId());
- updated.add(album.getTitle());
- } catch(Exception e) {
- Log.w(TAG, "Failed to get songs for " + album.getId() + " on " + Util.getServerName(context, instance));
+ if(!"Podcast".equals(album.getGenre())) {
+ try {
+ downloadRecursively(null, musicService.getMusicDirectory(album.getId(), album.getTitle(), true, context, null), context, false);
+ updated.add(album.getTitle());
+ } catch(Exception e) {
+ Log.w(TAG, "Failed to get songs for " + album.getId() + " on " + Util.getServerName(context, instance));
+ }
}
+ syncedList.add(album.getId());
}
}
}
|