From f4ad81b7ab21049ebc9740e1a6e019783956cda3 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 27 Jun 2023 21:45:36 +0200 Subject: [PATCH] get around timeouts when skipping a lot of downloaded albums --- tidal_scrape.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tidal_scrape.py b/tidal_scrape.py index 048ff3d..d53fded 100755 --- a/tidal_scrape.py +++ b/tidal_scrape.py @@ -178,6 +178,8 @@ for i, album in enumerate(albums): for j, track in enumerate(tracks): print(f"Downloading {j + 1}/{num_tracks}: {track.name}") # type: ignore[reportOptionalMemberAccess] check, _ = download_track(track) - # if check: - # time.sleep(1) + if check: + time.sleep(2) + else: + time.sleep(0.5) print()