2
0
Fork 0

get around timeouts when skipping a lot of downloaded albums

This commit is contained in:
Luca Bilke 2023-06-27 21:45:36 +02:00
parent 5d7771666a
commit f4ad81b7ab
1 changed files with 4 additions and 2 deletions

View File

@ -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()