diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-05-14 15:21:27 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-05-14 15:21:27 +0600 |
commit | 82245a6de77f4755b063310258c5611c15f5ffbd (patch) | |
tree | 5758799c4868295e53c4192fa2871135b1a4c92c /youtube_dl | |
parent | ff28ede2d1e98f67cb6a68cffde57b0a1f47f85d (diff) |
[YoutubeDL] Restore filename for thumbnails
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | 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 4c8196d08..691f3e09f 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1849,7 +1849,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' % |