diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java b/src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java index a718ead0..bd9f26c7 100644 --- a/src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java +++ b/src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java @@ -79,11 +79,11 @@ public class PodcastSyncAdapter extends SubsonicSyncAdapter { // Make sure podcast is valid and not already synced
if(entry.getId() != null && "completed".equals(((PodcastEpisode)entry).getStatus()) && !existingEpisodes.contains(entry.getId())) {
DownloadFile file = new DownloadFile(context, entry, false);
- while(!file.isSaved() && !file.isFailedMax()) {
+ while(!file.isCompleteFileAvailable() && !file.isFailedMax()) {
file.downloadNow(musicService);
}
// Only add if actualy downloaded correctly
- if(file.isSaved()) {
+ if(file.isCompleteFileAvailable()) {
existingEpisodes.add(entry.getId());
if(!updated.contains(podcasts.getName())) {
updated.add(podcasts.getName());
|