Explorar o código

[FFmpegSubtitlesConvertorPP] fix not working when srt is used as the intermediate format between ttml/dfxp and other format

It was trying to use the ttml/dfxp file with ffmpeg, which doesn't have support for them.
I broke it in e04398e397d4a4f7e0d0994355d5a94c22441e7c.
Jaime Marquínez Ferrándiz %!s(int64=9) %!d(string=hai) anos
pai
achega
7e62c2eb6d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      youtube_dl/postprocessor/ffmpeg.py

+ 1 - 0
youtube_dl/postprocessor/ffmpeg.py

@@ -508,6 +508,7 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
 
                 with io.open(srt_file, 'wt', encoding='utf-8') as f:
                     f.write(srt_data)
+                old_file = srt_file
 
                 ext = 'srt'
                 subs[lang] = {