ass2mks: Fix not working with shorter addressses

This commit is contained in:
Simon Bruder 2021-02-27 12:14:06 +01:00
parent a5576c60f7
commit 5497f01009
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -60,11 +60,11 @@ fonts = []
for line in res.stderr.decode("utf-8").splitlines(): for line in res.stderr.decode("utf-8").splitlines():
substitution = re.match( 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, line,
) )
fontselect = re.match( 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, line,
) )
if substitution is not None: if substitution is not None: