From e58e2d063948fe52e5fed1536548b6c4220be8fb Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 20 Feb 2023 23:16:18 +0100 Subject: [PATCH] Force-refresh feeds that failed before (#6332) Apparently some servers return "Not Modified", even though a broken feed was fixed in the meantime. When refreshing all feeds, now force-refresh the feeds that previously failed. --- .../antennapod/core/service/download/DownloadService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java index b04122487..0e55e9a36 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java @@ -468,6 +468,9 @@ public class DownloadService extends Service { if (feed.getPreferences().getKeepUpdated()) { DownloadRequest.Builder builder = DownloadRequestCreator.create(feed); builder.withInitiatedByUser(initiatedByUser); + if (feed.hasLastUpdateFailed()) { + builder.setForce(true); + } addNewRequest(builder.build()); } }