Update zspotify.py

This commit is contained in:
Footsiefat 2021-10-16 21:41:30 +13:00 committed by GitHub
parent 97c2812522
commit c138b0c7a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,10 +361,12 @@ def downloadTrack(track_id_str: str, extra_paths = ""):
print("### FOUND SONG:", songName, " ###") print("### FOUND SONG:", songName, " ###")
try:
stream = session.content_feeder().load( stream = session.content_feeder().load(
track_id, VorbisOnlyAudioQuality(quality), False, None) track_id, VorbisOnlyAudioQuality(quality), False, None)
except:
print("### SKIPPING:", songName, "(GENERAL DOWNLOAD ERROR) ###")
else:
print("### DOWNLOADING RAW AUDIO ###") print("### DOWNLOADING RAW AUDIO ###")
if not os.path.isdir(rootPath + extra_paths): if not os.path.isdir(rootPath + extra_paths):