From 71d09e321ed4e47597268ba90f7e0f8f55059616 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 22 Nov 2019 22:02:03 +0100 Subject: [PATCH 1/2] Save feed failed also when parsing failed --- .../danoeh/antennapod/core/service/download/DownloadService.java | 1 + 1 file changed, 1 insertion(+) 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 87b92c1e4..5f221e92e 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 @@ -284,6 +284,7 @@ public class DownloadService extends Service { saveDownloadStatus(task.getDownloadStatus()); } } else { + DBWriter.setFeedLastUpdateFailed(request.getFeedfileId(), true); saveDownloadStatus(task.getDownloadStatus()); } } else if (type == FeedMedia.FEEDFILETYPE_FEEDMEDIA) { From ef8202149d8456c52059d15beaf085043ba58d4a Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 22 Nov 2019 22:12:57 +0100 Subject: [PATCH 2/2] Sending event after feed update failed --- .../main/java/de/danoeh/antennapod/core/storage/DBWriter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java index 23d14fe87..cb80db625 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java @@ -831,6 +831,7 @@ public class DBWriter { adapter.open(); adapter.setFeedLastUpdateFailed(feedId, lastUpdateFailed); adapter.close(); + EventBus.getDefault().post(new FeedListUpdateEvent(feedId)); }); }