From 8e39f92cb7870c45c9023bf527c84fbca455c3f0 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 3 Aug 2020 21:50:26 +0200 Subject: [PATCH] Make album optional when reading scrobbles from cache --- src/scrobbler/scrobblercache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrobbler/scrobblercache.cpp b/src/scrobbler/scrobblercache.cpp index 08fdf19a7..5c983c7b6 100644 --- a/src/scrobbler/scrobblercache.cpp +++ b/src/scrobbler/scrobblercache.cpp @@ -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; }