1
0
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:
Johan Andersson 2019-09-14 20:12:56 +02:00
parent eb4f508fb0
commit b428bcc398

View File

@ -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: