mirror of https://github.com/KDE/kasts.git
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:
parent
f2efa50b82
commit
8e3a688ddf
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue