get around timeouts when skipping a lot of downloaded albums
This commit is contained in:
parent
5d7771666a
commit
f4ad81b7ab
1 changed files with 4 additions and 2 deletions
|
@ -178,6 +178,8 @@ for i, album in enumerate(albums):
|
||||||
for j, track in enumerate(tracks):
|
for j, track in enumerate(tracks):
|
||||||
print(f"Downloading {j + 1}/{num_tracks}: {track.name}") # type: ignore[reportOptionalMemberAccess]
|
print(f"Downloading {j + 1}/{num_tracks}: {track.name}") # type: ignore[reportOptionalMemberAccess]
|
||||||
check, _ = download_track(track)
|
check, _ = download_track(track)
|
||||||
# if check:
|
if check:
|
||||||
# time.sleep(1)
|
time.sleep(2)
|
||||||
|
else:
|
||||||
|
time.sleep(0.5)
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue