From 3d283da0f777910d35d62b0648f1627ce050eb50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Wed, 3 Jul 2024 23:09:07 +0100 Subject: [PATCH] =?UTF-8?q?Add=20option=20for=20tracks=20that=20won?= =?UTF-8?q?=E2=80=99t=20be=20scrobbled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scrobble.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scrobble.py b/scrobble.py index 84f5536..40aa179 100644 --- a/scrobble.py +++ b/scrobble.py @@ -27,8 +27,11 @@ def scrobble(thealbum): else: theartist = album["artist"] thetrack = item - last_api_call = network.scrobble(theartist,thetrack,int(time.time())) - print("Scrobbled " + item) + if theartist == "noscrob": + print("Skipped " + thetrack) + else: + last_api_call = network.scrobble(theartist,thetrack,int(time.time())) + print("Scrobbled " + item) countdown(tracklist[item]) if i < len(album["tracks"]): input("Press enter after changing side")