[postprocessor/embedthumbnail] Use thumbnails downloaded by YoutubeDL

This commit is contained in:
Yen Chi Hsuan
2015-05-14 02:32:00 +08:00
parent 3749e36e9f
commit 8e59539752
3 changed files with 20 additions and 13 deletions

View File

@ -1848,7 +1848,7 @@ class YoutubeDL(object):
thumb_ext = determine_ext(t['url'], 'jpg')
suffix = '_%s' % t['id'] if len(thumbnails) > 1 else ''
thumb_display_id = '%s ' % t['id'] if len(thumbnails) > 1 else ''
thumb_filename = os.path.splitext(filename)[0] + suffix + '.' + thumb_ext
t['filename'] = thumb_filename = os.path.splitext(filename)[0] + suffix + '.' + thumb_ext
if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(thumb_filename)):
self.to_screen('[%s] %s: Thumbnail %sis already present' %