1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Ignore scrobbles without a rawscrobble

This commit is contained in:
alim4r 2022-04-20 21:48:41 +02:00
parent c457b58ab8
commit 85bb1f36cc

View File

@ -117,7 +117,7 @@ def reparse_scrobble(timestamp):
log(f"Reparsing Scrobble {timestamp}") log(f"Reparsing Scrobble {timestamp}")
scrobble = sqldb.get_scrobble(timestamp) scrobble = sqldb.get_scrobble(timestamp)
if not scrobble: if not scrobble or not scrobble['rawscrobble']:
return return
scrobbledict = rawscrobble_to_scrobbledict(scrobble['rawscrobble']) scrobbledict = rawscrobble_to_scrobbledict(scrobble['rawscrobble'])