mpv.net icon indicating copy to clipboard operation
mpv.net copied to clipboard

fix: only strip inline # comment when preceded by whitespace in mpv.conf parser

Open Bolt4243 opened this issue 5 months ago • 0 comments

The conf parser in Player.Conf stripped everything from the first # onward whenever a value contained # but did not start with it. This corrupted legitimate values such as script-opts=key=val#suffix or color hex codes.

mpv's own conf syntax treats # as a comment only when preceded by whitespace. Changed the check to look for " #" (space then hash) so embedded # characters in values are preserved.

Bolt4243 avatar Jun 18 '26 02:06 Bolt4243