diff options
author | alimirjamali <ali.mirjamali@gmail.com> | 2013-12-16 20:14:28 +0330 |
---|---|---|
committer | alimirjamali <ali.mirjamali@gmail.com> | 2013-12-16 20:14:28 +0330 |
commit | 0a9ce268bad2d2bfaba1498e3843784a2f14e856 (patch) | |
tree | 0110ba48032e47b8738dd3e48c83ab3b1940214a /youtube_dl | |
parent | 4b2da48ea794178236975eaeef1be120b8a95f2a (diff) |
Incorrect variable is used to check whether thumbnail exists
Dear @phihag
I believe in line 848, the correct variable to check is 'thumb_filename' rather than 'infofn'
Kindly advise
Mit freundlichen Gruessen
Ali
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 2fa34ebc9..b1f87415b 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: |