mirror of
https://github.com/KDE/kasts.git
synced 2025-01-15 18:16:59 +01:00
Solve problem in logic where it would only fetch the first new episode
This commit is contained in:
parent
a45351e1de
commit
68771f4911
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user