fixing albumart download

This commit is contained in:
deezerdl 2017-05-29 21:42:04 +00:00 committed by GitHub
parent 2418bd784f
commit a0827f784a

View File

@ -45,7 +45,7 @@ def writeid3v2(fo, info_dict, ydl):
maketag(b"TALB", makeutf8(info_dict["album"])), # tern NUL ? maketag(b"TALB", makeutf8(info_dict["album"])), # tern NUL ?
] ]
try: try:
fh = ydl.urlopen(url) fh = ydl.urlopen(info_dict["thumbnail"])
id3.append(maketag(b"APIC", makepic(fh.read()))) id3.append(maketag(b"APIC", makepic(fh.read())))
except Exception as e: except Exception as e:
pass pass