As a continuation to #92 and #93, this PR adds a simple implementation of %[#][0X]n with some limitations:
Only one pattern -- one %0Xn or one %#0Xn -- is allowed.
If both present, between %0Xn and %#0Xn, the first takes priority, the second one is ignored.
Everything else works as you would expect it from mpv.
To be honest, I don't see a reason why anyone would include both patterns or the same pattern more than once in the template, besides, it also confuses mpv itself.
As a continuation to #92 and #93, this PR adds a simple implementation of
%[#][0X]n
with some limitations:%0Xn
or one%#0Xn
-- is allowed.%0Xn
and%#0Xn
, the first takes priority, the second one is ignored.To be honest, I don't see a reason why anyone would include both patterns or the same pattern more than once in the template, besides, it also confuses mpv itself.