Force-refresh feeds that failed before (#6332)

Apparently some servers return "Not Modified", even though a broken feed
was fixed in the meantime. When refreshing all feeds, now force-refresh
the feeds that previously failed.
This commit is contained in:
ByteHamster 2023-02-20 23:16:18 +01:00 committed by GitHub
parent a5d4864776
commit e58e2d0639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -468,6 +468,9 @@ public class DownloadService extends Service {
if (feed.getPreferences().getKeepUpdated()) {
DownloadRequest.Builder builder = DownloadRequestCreator.create(feed);
builder.withInitiatedByUser(initiatedByUser);
if (feed.hasLastUpdateFailed()) {
builder.setForce(true);
}
addNewRequest(builder.build());
}
}