diff --git a/ass2mks.py b/ass2mks.py index f033e8e..d73aa32 100755 --- a/ass2mks.py +++ b/ass2mks.py @@ -60,11 +60,11 @@ fonts = [] for line in res.stderr.decode("utf-8").splitlines(): substitution = re.match( - "^\[Parsed_subtitles_0 @ 0x[0-9a-f]{12}\] Glyph .* not found, selecting one more font for \((.*), ([0-9]{1,3}), ([0-9]{1,3})\)", + "^\[Parsed_subtitles_0 @ 0x[0-9a-f]*\] Glyph .* not found, selecting one more font for \((.*), ([0-9]{1,3}), ([0-9]{1,3})\)", line, ) fontselect = re.match( - "^\[Parsed_subtitles_0 @ 0x[0-9a-f]{12}\] fontselect: \((.*), ([0-9]{1,3}), ([0-9]{1,3})\) -> (.*), ([0-9]*), (.*)", + "^\[Parsed_subtitles_0 @ 0x[0-9a-f]*\] fontselect: \((.*), ([0-9]{1,3}), ([0-9]{1,3})\) -> (.*), ([0-9]*), (.*)", line, ) if substitution is not None: