From: Jaime Marquínez Ferrándiz Date: Thu, 29 Jan 2015 19:15:38 +0000 (+0100) Subject: [YoutubeDL] set the 'thumbnails' field if the info_dict has the 'thumbnails' field X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a7a14d958604f5334413e2fc1872a8317d5e4884;p=youtube-dl [YoutubeDL] set the 'thumbnails' field if the info_dict has the 'thumbnails' field Since the '--write-thumbnail' uses the 'thumbnails' field and we didn't updated the info_dict, it wouldn't detect the thumbnail. (fixes #4812) --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 4c238c555..14e92ddcf 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -958,7 +958,7 @@ class YoutubeDL(object): if thumbnails is None: thumbnail = info_dict.get('thumbnail') if thumbnail: - thumbnails = [{'url': thumbnail}] + info_dict['thumbnails'] = thumbnails = [{'url': thumbnail}] if thumbnails: thumbnails.sort(key=lambda t: ( t.get('preference'), t.get('width'), t.get('height'),