0
0
Fork 0

[YoutubeDL] Encode thumbnail filename (Closes #6714)

main
Sergey M․ 2015-08-31 02:01:13 +06:00
parent 8875b3d572
commit d3d89c3256
1 changed files with 1 additions and 1 deletions

View File

@ -2009,7 +2009,7 @@ class YoutubeDL(object):
(info_dict['extractor'], info_dict['id'], thumb_display_id))
try:
uf = self.urlopen(t['url'])
with open(thumb_filename, 'wb') as thumbf:
with open(encodeFilename(thumb_filename), 'wb') as thumbf:
shutil.copyfileobj(uf, thumbf)
self.to_screen('[%s] %s: Writing thumbnail %sto: %s' %
(info_dict['extractor'], info_dict['id'], thumb_display_id, thumb_filename))