1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-22 05:38:36 +01:00

Fix collection update for art_manual

This commit is contained in:
Jonas Kvinge 2021-03-07 05:37:07 +01:00
parent 04bbff338d
commit cff25374b5

View File

@ -1145,11 +1145,11 @@ void CollectionBackend::UpdateManualAlbumArt(const QString &effective_albumartis
}
// Update the songs
QString sql(QString("UPDATE %1 SET art_manual = :cover ").arg(songs_table_));
QString sql(QString("UPDATE %1 SET art_manual = :cover").arg(songs_table_));
if (clear_art_automatic) {
sql += "AND art_automatic = '' ";
sql += ", art_automatic = ''";
}
sql += "WHERE effective_albumartist = :effective_albumartist AND album = :album AND unavailable = 0";
sql += " WHERE effective_albumartist = :effective_albumartist AND album = :album AND unavailable = 0";
QSqlQuery q(db);
q.prepare(sql);