A feature-rich command-line audio/video downloader
Incorrect variable is used to check whether thumbnail exists
alimirjamali0a9ce268bad2
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.pyindex 2fa34ebc9a..b1f87415b9 100644--- a/youtube_dl/YoutubeDL.py+++ b/youtube_dl/YoutubeDL.py@@ -845,7 +845,7 @@ class YoutubeDL(object):if info_dict.get('thumbnail') is not None:thumb_format = determine_ext(info_dict['thumbnail'], u'jpg')thumb_filename = os.path.splitext(filename)[0] + u'.' + thumb_format- if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(infofn)):+ if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(thumb_filename)):self.to_screen(u'[%s] %s: Thumbnail is already present' %(info_dict['extractor'], info_dict['id']))else: