about summary refs log tree commit diff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-10-18 04:03:53 +0700
committerSergey M․ <dstftw@gmail.com>2019-10-18 04:03:53 +0700
commit824fa51165d92ceee01589bf995ebbf009df328c (patch)
tree20c31ecdef57d2ce71de14462ed4dcc0fdd58d2a /youtube_dl/YoutubeDL.py
parent34e3885bc9e3aecab104b96eabce03854ac8f7a2 (diff)
downloadyoutube-dl-824fa51165d92ceee01589bf995ebbf009df328c.tar.gz
youtube-dl-824fa51165d92ceee01589bf995ebbf009df328c.tar.xz
youtube-dl-824fa51165d92ceee01589bf995ebbf009df328c.zip
[utils] Improve subtitles_filename (closes #22753)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index c3d1407f9..f5cb46308 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1814,7 +1814,7 @@ class YoutubeDL(object):
             ie = self.get_info_extractor(info_dict['extractor_key'])
             for sub_lang, sub_info in subtitles.items():
                 sub_format = sub_info['ext']
-                sub_filename = subtitles_filename(filename, sub_lang, sub_format)
+                sub_filename = subtitles_filename(filename, sub_lang, sub_format, info_dict.get('ext'))
                 if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(sub_filename)):
                     self.to_screen('[info] Video subtitle %s.%s is already present' % (sub_lang, sub_format))
                 else: