ass2mks: Fix not working with shorter addressses
This commit is contained in:
parent
a5576c60f7
commit
5497f01009
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue