Changed the if not to only if as even with default config value it'll never sleep.

This commit is contained in:
Hector Villarreal 2024-02-19 13:42:19 -06:00
parent 60550a4a41
commit 9d903ea107

View File

@ -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) ###')