浏览代码

[FFmpegSubtitlesConvertorPP] correctly update the extension (fixes #8444)

Jaime Marquínez Ferrándiz 9 年之前
父节点
当前提交
3547d26587
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/postprocessor/ffmpeg.py

+ 1 - 1
youtube_dl/postprocessor/ffmpeg.py

@@ -523,7 +523,7 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
 
 
             with io.open(new_file, 'rt', encoding='utf-8') as f:
             with io.open(new_file, 'rt', encoding='utf-8') as f:
                 subs[lang] = {
                 subs[lang] = {
-                    'ext': ext,
+                    'ext': new_ext,
                     'data': f.read(),
                     'data': f.read(),
                 }
                 }