From 360aee33c83c03f795a11513a405f084ab7d0542 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 3 Jan 2014 07:40:37 -0800 Subject: Don't sync podcasts in most recent adapter (lists are huge) --- .../dsub/service/sync/MostRecentSyncAdapter.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') 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()); } } } -- cgit v1.2.3