command line syntax is supported in mpv.conf

This commit is contained in:
stax76
2022-07-27 09:42:00 +02:00
parent 5a08d9ccd6
commit b2a3c231ff
3 changed files with 7 additions and 1 deletions

View File

@@ -378,6 +378,9 @@ namespace mpvnet
string key = i.Substring(0, i.IndexOf("=")).Trim();
string value = i.Substring(i.IndexOf("=") + 1).Trim();
if (key.StartsWith("-"))
key = key.TrimStart('-');
if (value.Contains("#") && !value.StartsWith("#") &&
!value.StartsWith("'#") && !value.StartsWith("\"#"))