Переглянути джерело

[FFmpegSubtitlesConvertorPP] remove intermediate srt files

Jaime Marquínez Ferrándiz 9 роки тому
батько
коміт
7b8b007cd9
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      youtube_dl/postprocessor/ffmpeg.py

+ 2 - 0
youtube_dl/postprocessor/ffmpeg.py

@@ -518,6 +518,8 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
 
                 if new_ext == 'srt':
                     continue
+                else:
+                    sub_filenames.append(srt_file)
 
             self.run_ffmpeg(old_file, new_file, ['-f', new_format])