Don't update redirect url if it is the same as the original (#6661)
This commit is contained in:
parent
574ec1434c
commit
7229cb40e9
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue