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