Don't mark any episodes as new when adding new feeds

Tobias was right; marking one (or more) episodes as "new" on a new feed
doesn't make a lot of sense.  The latest episode from some podcast feeds
can be very old.  Besides, it's quite annoying having a lot of episodes
queued automatically...
This commit is contained in:
Bart De Vries 2021-05-05 14:04:47 +02:00
parent f2efa50b82
commit 8e3a688ddf
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ void Fetcher::processFeed(Syndication::FeedPtr feed, const QString &url)
if (isNewFeed) {
query.prepare(QStringLiteral("SELECT * FROM Entries WHERE feed=:feed ORDER BY updated DESC LIMIT :recentNew;"));
query.bindValue(QStringLiteral(":feed"), url);
query.bindValue(QStringLiteral(":recentNew"), 1); // hardcode to marking one episode as new
query.bindValue(QStringLiteral(":recentNew"), 0); // hardcode to marking no episode as new on a new feed
Database::instance().execute(query);
QSqlQuery updateQuery;
while (query.next()) {