[FFmpegSubtitlesConvertorPP] fix not working when srt is used as the intermediate...
[youtube-dl] / youtube_dl / postprocessor / ffmpeg.py
index 22d7ac65ac6fe6e0aedc4c91a101fb8272b9dd97..6daa6a8b46babaade0f3d8e0518aa4ffb1bea727 100644 (file)
@@ -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] = {