mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-23 19:55:38 +01:00
postprocess: fix a crash during remuxing because it could not find tracks
fixes: #1153
This commit is contained in:
parent
eb4f508fb0
commit
b428bcc398
@ -232,7 +232,7 @@ class postprocess:
|
|||||||
os.rename(tempfile, orig_filename)
|
os.rename(tempfile, orig_filename)
|
||||||
|
|
||||||
def _streams(self, output):
|
def _streams(self, output):
|
||||||
return re.findall(r"Stream \#\d:(\d)\[[^\[]+\]([\(\)\w]+)?: (Video|Audio): (.*)", output)
|
return re.findall(r"Stream \#\d:(\d)[\[\(][^\[]+[\]\)]([\(\)\w]+)?: (Video|Audio): (.*)", output)
|
||||||
|
|
||||||
def _getcodec(self, streams, number):
|
def _getcodec(self, streams, number):
|
||||||
for stream in streams:
|
for stream in streams:
|
||||||
|
Loading…
Reference in New Issue
Block a user