Solve problem in logic where it would only fetch the first new episode

This commit is contained in:
Bart De Vries 2021-04-20 10:37:40 +02:00
parent a45351e1de
commit 68771f4911
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ void Fetcher::processFeed(Syndication::FeedPtr feed, const QString &url)
bool updatedEntries = false;
for (const auto &entry : feed->items()) {
QCoreApplication::processEvents(); // keep the main thread semi-responsive
updatedEntries = updatedEntries || processEntry(entry, url, isNewFeed);
bool isNewEntry = processEntry(entry, url, isNewFeed);
updatedEntries = updatedEntries || isNewEntry;
}
// Now mark the appropriate number of recent entries "new" and "read" only for new feeds