diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java b/core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java index 59d9df8f5..2f763e78e 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java @@ -176,7 +176,8 @@ public class FeedUpdateWorker extends Worker { newEpisodesNotification.showIfNeeded(getApplicationContext(), feedSyncTask.getSavedFeed()); if (downloader.permanentRedirectUrl != null) { DBWriter.updateFeedDownloadURL(request.getSource(), downloader.permanentRedirectUrl); - } else if (feedSyncTask.getRedirectUrl() != null) { + } else if (feedSyncTask.getRedirectUrl() != null + && !feedSyncTask.getRedirectUrl().equals(request.getSource())) { DBWriter.updateFeedDownloadURL(request.getSource(), feedSyncTask.getRedirectUrl()); } } diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java index d42f14591..d6a4fa1cb 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java @@ -281,7 +281,7 @@ public final class DBTasks { if (oldItem != null) { oldItem.updateFromOther(item); } else { - // item is new + Log.d(TAG, "Found new item: " + item.getTitle()); item.setFeed(savedFeed); if (idx >= savedFeed.getItems().size()) {