[Sponsorblock] minor fixes (#2793)

* preserve mtime - Closes #2769
* keep concat spec on failure

Authored by: nihil-admirari
This commit is contained in:
Nil Admirari 2022-02-17 17:10:34 +00:00 committed by GitHub
parent ac184ab742
commit ae419aa94f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -384,12 +384,10 @@ class FFmpegPostProcessor(PostProcessor):
out_flags = list(self.stream_copy_opts(ext=determine_ext(out_file)))
try:
self.real_run_ffmpeg(
[(concat_file, ['-hide_banner', '-nostdin', '-f', 'concat', '-safe', '0'])],
[(out_file, out_flags)])
finally:
os.remove(concat_file)
self.real_run_ffmpeg(
[(concat_file, ['-hide_banner', '-nostdin', '-f', 'concat', '-safe', '0'])],
[(out_file, out_flags)])
os.remove(concat_file)
@classmethod
def _concat_spec(cls, in_files, concat_opts=None):