summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2023-08-22 12:00:34 +0200
committerGitHub <noreply@github.com>2023-08-22 12:00:34 +0200
commitb5cd973a868e0d63c6e8a5cc445fa3edf16a73a4 (patch)
tree9d2bb7d654981a3cea0f8c420dca2ebc9b6ff9c9
parent91d5238f0856f80e8f5ad50726f16b82a69eb6e0 (diff)
downloadAntennaPod-b5cd973a868e0d63c6e8a5cc445fa3edf16a73a4.zip
Do not try to resume download of feeds (#6591)
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadRequestCreator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadRequestCreator.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadRequestCreator.java
index 4d5f2883d..fd5babdd1 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadRequestCreator.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadRequestCreator.java
@@ -21,6 +21,9 @@ public class DownloadRequestCreator {
public static DownloadRequest.Builder create(Feed feed) {
File dest = new File(getFeedfilePath(), getFeedfileName(feed));
+ if (dest.exists()) {
+ dest.delete();
+ }
Log.d(TAG, "Requesting download of url " + feed.getDownload_url());
String username = (feed.getPreferences() != null) ? feed.getPreferences().getUsername() : null;