Make album optional when reading scrobbles from cache

This commit is contained in:
Jonas Kvinge 2020-08-03 21:50:26 +02:00
parent 3ff4885973
commit 8e39f92cb7
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ void ScrobblerCache::ReadCache() {
int track = json_obj_track["track"].toInt();
qint64 duration = json_obj_track["duration"].toVariant().toLongLong();
if (timestamp <= 0 || artist.isEmpty() || album.isEmpty() || song.isEmpty() || duration <= 0) {
if (timestamp <= 0 || artist.isEmpty() || song.isEmpty() || duration <= 0) {
qLog(Error) << "Invalid cache data" << "for song" << song;
continue;
}