mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-11-29 19:24:34 +01:00
Changed the if not to only if as even with default config value it'll never sleep.
This commit is contained in:
parent
60550a4a41
commit
9d903ea107
@ -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) ###')
|
||||
|
Loading…
Reference in New Issue
Block a user