mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-23 16:22:30 +00:00
Fix thumbnail filename determination (Fixes #1945)
This commit is contained in:
parent
08d03235f9
commit
357ddadbf5
1 changed files with 1 additions and 1 deletions
|
@ -827,7 +827,7 @@ class YoutubeDL(object):
|
||||||
if self.params.get('writethumbnail', False):
|
if self.params.get('writethumbnail', False):
|
||||||
if info_dict.get('thumbnail') is not None:
|
if info_dict.get('thumbnail') is not None:
|
||||||
thumb_format = determine_ext(info_dict['thumbnail'], u'jpg')
|
thumb_format = determine_ext(info_dict['thumbnail'], u'jpg')
|
||||||
thumb_filename = filename.rpartition('.')[0] + u'.' + thumb_format
|
thumb_filename = os.path.splitext(filename)[0] + u'.' + thumb_format
|
||||||
self.to_screen(u'[%s] %s: Downloading thumbnail ...' %
|
self.to_screen(u'[%s] %s: Downloading thumbnail ...' %
|
||||||
(info_dict['extractor'], info_dict['id']))
|
(info_dict['extractor'], info_dict['id']))
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue