diff --git a/scrobbler.py b/scrobbler.py index 5cf2ca7..7546c7d 100644 --- a/scrobbler.py +++ b/scrobbler.py @@ -48,7 +48,11 @@ while True: except Exception as e: print(e) continue + if not out: + continue id, state, artist, song, album, duration, album_artist = out + if hasattr(duration, "code"): + continue print(f"{runtime}/{round(duration)}", end="\r") if old_id != id: print("new song", old_id, id, song)