mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-11-29 19:24:34 +01:00
Update zspotify.py
This commit is contained in:
parent
c138b0c7a4
commit
011fe980a2
11
zspotify.py
11
zspotify.py
@ -404,9 +404,14 @@ def downloadTrack(track_id_str: str, extra_paths = ""):
|
|||||||
f.write(buffer)
|
f.write(buffer)
|
||||||
bpos = 0
|
bpos = 0
|
||||||
'''
|
'''
|
||||||
convertToMp3(filename)
|
try:
|
||||||
setAudioTags(filename, artists, name, albumName, releaseYear, disc_number, track_number)
|
convertToMp3(filename)
|
||||||
setMusicThumbnail(filename, imageUrl)
|
except:
|
||||||
|
os.remove(filename)
|
||||||
|
print("### SKIPPING:", songName, "(GENERAL CONVERSION ERROR) ###")
|
||||||
|
else:
|
||||||
|
setAudioTags(filename, artists, name, albumName, releaseYear, disc_number, track_number)
|
||||||
|
setMusicThumbnail(filename, imageUrl)
|
||||||
|
|
||||||
def downloadAlbum(album):
|
def downloadAlbum(album):
|
||||||
token = session.tokens().get("user-read-email")
|
token = session.tokens().get("user-read-email")
|
||||||
|
Loading…
Reference in New Issue
Block a user