mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +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)
|
orig_filename = formatname(self.stream.output, self.config)
|
||||||
ext = orig_filename.suffix
|
ext = orig_filename.suffix
|
||||||
|
new_name = orig_filename.with_suffix(".mp4")
|
||||||
|
|
||||||
if ext == ".ts":
|
if ext == ".ts":
|
||||||
audio_filename = orig_filename.with_suffix(".audio.ts")
|
audio_filename = orig_filename.with_suffix(".audio.ts")
|
||||||
@ -178,7 +179,7 @@ class postprocess:
|
|||||||
os.remove(subfile)
|
os.remove(subfile)
|
||||||
else:
|
else:
|
||||||
os.remove(subfile)
|
os.remove(subfile)
|
||||||
os.rename(tempfile, orig_filename)
|
os.rename(tempfile, new_name)
|
||||||
|
|
||||||
|
|
||||||
def _streams(output):
|
def _streams(output):
|
||||||
|
Loading…
Reference in New Issue
Block a user