aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index 7be4b8f3..be8cf91e 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -654,11 +654,12 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
@Override
protected Void doInBackground() throws Throwable {
MusicService musicService = MusicServiceFactory.getMusicService(context);
-
- int count = entryList.getCount();
- for(int i = 0; i < count; i++) {
- PodcastEpisode episode = (PodcastEpisode) entryList.getItemAtPosition(i);
- musicService.downloadPodcastEpisode(episode.getEpisodeId(), context, null);
+
+ for(int i = 0; i < entries.size(); i++) {
+ PodcastEpisode episode = (PodcastEpisode) entries.get(i);
+ if("skipped".equals(episode.getStatus())) {
+ musicService.downloadPodcastEpisode(episode.getEpisodeId(), context, null);
+ }
}
return null;
}