From b962eafaf2e12c87b10e2ba3b4fd93312a84608f Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 14 Jan 2017 18:31:45 +0100 Subject: spotify-scrobble: don't clear old values to prevent double scrobbling after pausing --- spotify-scrobble.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spotify-scrobble.sh b/spotify-scrobble.sh index e9675e9..83b3f9f 100755 --- a/spotify-scrobble.sh +++ b/spotify-scrobble.sh @@ -25,10 +25,6 @@ do if [ "`echo "$status" | tail -n1 | cut -d '"' -f 2`" != "Playing" ]; then # currently nothing is playing; keep checking - old_artist= - old_title= - old_album= - old_duration= sleep 5 continue fi -- cgit v1.2.3