X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2FYoutubeDL.py;h=c76f1118ee54e66df89d52e09cc85c80914c5f75;hb=d8269e1dfbe06d4b373211e54476bcd326f69abe;hp=cc5f761577cf946dd6824663c76bc298bb71fe23;hpb=cbdbb7666540ba07ab7e4a3a7bc34759bf0ca6d9;p=youtube-dl diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index cc5f76157..c76f1118e 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -529,7 +529,7 @@ class YoutubeDL(object): return if self.params.get('writethumbnail', False): - if 'thumbnail' in info_dict: + if info_dict.get('thumbnail') is not None: thumb_format = determine_ext(info_dict['thumbnail'], u'jpg') thumb_filename = filename.rpartition('.')[0] + u'.' + thumb_format self.to_screen(u'[%s] %s: Downloading thumbnail ...' %