Update media.py

Except ItemExists in Tracklist download function when concurrent downloads are enabled
This commit is contained in:
Dlanis 2023-07-27 09:45:07 +00:00 committed by GitHub
parent 12db8e001a
commit 088e2a459f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1173,6 +1173,9 @@ class Tracklist(list):
for future in future_map.keys():
try:
future.result()
except ItemExists:
item = future_map[future]
secho(f"{item!s} exists. Skipping.", fg="yellow")
except NonStreamable as e:
item = future_map[future]
e.print(item)