diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2021-11-21 21:10:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 21:10:51 +0100 |
commit | cc6c6595a90bb62ce6b94ad7128f0edc79b247db (patch) | |
tree | 32300960b74308b89e798361b43daa2a149b8e7b /core | |
parent | 782341f53461d3d11543693902e5938e6d1ace0c (diff) | |
parent | 11b8c53659145e2d727bda137427957529e68373 (diff) | |
download | AntennaPod-cc6c6595a90bb62ce6b94ad7128f0edc79b247db.zip |
Merge pull request #5566 from ByteHamster/no-local-duplicate
Don't try to find duplicates in local files
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 68bc9c5f8..719620202 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 @@ -456,7 +456,7 @@ public final class DBTasks { final FeedItem item = newFeed.getItems().get(idx); FeedItem possibleDuplicate = searchFeedItemGuessDuplicate(newFeed.getItems(), item); - if (possibleDuplicate != null && item != possibleDuplicate) { + if (!newFeed.isLocalFeed() && possibleDuplicate != null && item != possibleDuplicate) { // Canonical episode is the first one returned (usually oldest) DBWriter.addDownloadStatus(new DownloadStatus(savedFeed, item.getTitle(), DownloadError.ERROR_PARSER_EXCEPTION_DUPLICATE, false, @@ -470,7 +470,7 @@ public final class DBTasks { } FeedItem oldItem = searchFeedItemByIdentifyingValue(savedFeed.getItems(), item); - if (oldItem == null) { + if (!newFeed.isLocalFeed() && oldItem == null) { oldItem = searchFeedItemGuessDuplicate(savedFeed.getItems(), item); if (oldItem != null) { Log.d(TAG, "Repaired duplicate: " + oldItem + ", " + item); |