mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-23 19:55:38 +01:00
postprocess: the output is an .mp4 file
This commit is contained in:
parent
f9718902a9
commit
bb09d0fc76
@ -105,6 +105,7 @@ class postprocess:
|
||||
|
||||
orig_filename = formatname(self.stream.output, self.config)
|
||||
ext = orig_filename.suffix
|
||||
new_name = orig_filename.with_suffix(".mp4")
|
||||
|
||||
if ext == ".ts":
|
||||
audio_filename = orig_filename.with_suffix(".audio.ts")
|
||||
@ -178,7 +179,7 @@ class postprocess:
|
||||
os.remove(subfile)
|
||||
else:
|
||||
os.remove(subfile)
|
||||
os.rename(tempfile, orig_filename)
|
||||
os.rename(tempfile, new_name)
|
||||
|
||||
|
||||
def _streams(output):
|
||||
|
Loading…
Reference in New Issue
Block a user