From b428bcc39839dd155549ec111e5344b54ba2758c Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 14 Sep 2019 20:12:56 +0200 Subject: [PATCH] postprocess: fix a crash during remuxing because it could not find tracks fixes: #1153 --- lib/svtplay_dl/postprocess/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/postprocess/__init__.py b/lib/svtplay_dl/postprocess/__init__.py index 6becb80..6a7d574 100644 --- a/lib/svtplay_dl/postprocess/__init__.py +++ b/lib/svtplay_dl/postprocess/__init__.py @@ -232,7 +232,7 @@ class postprocess: os.rename(tempfile, orig_filename) 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): for stream in streams: