Open Neuro-NX opened 2 months ago
So it turns out that, if the option KEY contains a seperator character -
or _
then this issue occurs. Options with a single string format the KEY/VALUE pair correctly.
I resolved this by enclosing any option with such characters in double-quotes.
Can someone reproduce this bug? It only affects the config
option for some reason.
Just ran into this myself but slightly differently. This happens with every config option, not just ones with -
or _
in the key.
After more digging I found out that this is actually valid mpv.conf syntax so it's not a bug after all.
Are you following the right branch?
Is there an existing issue for this?
Issue description
config
option inprograms.mpv
are not being correctly parsed and formatted.result:
The string length of the value is being passed in the output, which it shouldn't.
I think the culprit is
I think it is because the escape character
%
is being enclosed within double-quotes, thereby read as a string?Maintainer CC
@thiagokokada @chuangzhu
System information