From 8e3a688ddffab85e5eb6da07ca5b13bb5727beca Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Wed, 5 May 2021 14:04:47 +0200 Subject: [PATCH] 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... --- src/fetcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetcher.cpp b/src/fetcher.cpp index 302b89c8..94c06476 100644 --- a/src/fetcher.cpp +++ b/src/fetcher.cpp @@ -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()) {