Fix id3pp: try..catch for lyrics, file.save()

This commit is contained in:
DarkCat09 2024-04-28 14:00:54 +04:00
parent 3a25d86b4f
commit 7669127826
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -58,7 +58,12 @@ class ID3TagsPP(PostProcessor):
if 'track_number' in information:
file['TRCK'] = id3.TRCK(encoding=ENC_UTF8, text=str(information['track_number']))
try:
lyr_url = genius.search(title, artist)
file['USLT'] = id3.USLT(encoding=ENC_UTF8, text=genius.parse(lyr_url))
except:
pass
file.save()
return [], information