Command line parser fix using list options with -add suffix

This commit is contained in:
stax76
2023-12-19 12:12:34 +01:00
parent a3b9c653fa
commit ab8a8d5a35
3 changed files with 7 additions and 3 deletions

View File

@@ -435,7 +435,7 @@ public class MainPlayer : MpvClient
{
string name = pair.Name[..^4];
string separator = name.Contains("-file") || name.Contains("-path") ? ";" : ",";
SetPropertyString(name, GetPropertyString(name) + separator + pair.Value);
SetPropertyString(name, (GetPropertyString(name) + separator + pair.Value).TrimStart(','));
}
}
}