From 9d903ea1077e874a033180d8f8c2a3e2fadc4edd Mon Sep 17 00:00:00 2001 From: Hector Villarreal Date: Mon, 19 Feb 2024 13:42:19 -0600 Subject: [PATCH] Changed the if not to only if as even with default config value it'll never sleep. --- zspotify/track.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zspotify/track.py b/zspotify/track.py index e4f4b47c..aa27ebd2 100644 --- a/zspotify/track.py +++ b/zspotify/track.py @@ -231,7 +231,7 @@ def download_track(mode: str, track_id: str, extra_keys=None, disable_progressba if not check_id: add_to_directory_song_ids(filedir, scraped_song_id, os.path.basename(filename), artists[0], name) - if not ZSpotify.CONFIG.get_anti_ban_wait_time(): + if ZSpotify.CONFIG.get_anti_ban_wait_time(): time.sleep(ZSpotify.CONFIG.get_anti_ban_wait_time()) except Exception as e: Printer.print(PrintChannel.ERRORS, '### SKIPPING: ' + song_name + ' (GENERAL DOWNLOAD ERROR) ###')