aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-01-02 19:02:30 -0800
committerScott Jackson <daneren2005@gmail.com>2014-01-02 19:02:30 -0800
commit90b6440fe2ab872acd5e0c365f0c77f0a5932da8 (patch)
tree91d80c44173fd722d5d39290e7d08cda57d3b37f /src
parent0eacecbc74537d76f7b411325f436312b829243a (diff)
downloaddsub-90b6440fe2ab872acd5e0c365f0c77f0a5932da8.tar.gz
dsub-90b6440fe2ab872acd5e0c365f0c77f0a5932da8.tar.bz2
dsub-90b6440fe2ab872acd5e0c365f0c77f0a5932da8.zip
Fix infinite loop from changing to non-pinning download
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java4
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());