Merge pull request #4780 from damoasda/localfeed-issue-4765-master

Fix #4765: Disable autoDownload for local feeds (master branch)
This commit is contained in:
ByteHamster 2020-12-20 23:11:09 +01:00 committed by GitHub
commit 1a94cd12ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class APDownloadAlgorithm implements AutomaticDownloadAlgorithm {
Iterator<FeedItem> it = candidates.iterator(); Iterator<FeedItem> it = candidates.iterator();
while (it.hasNext()) { while (it.hasNext()) {
FeedItem item = it.next(); FeedItem item = it.next();
if (!item.isAutoDownloadable()) { if (!item.isAutoDownloadable() || item.getFeed().isLocalFeed()) {
it.remove(); it.remove();
} }
} }