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

@@ -9,6 +9,7 @@
- Fix OSC hide behavior on mouse move.
- New binding to show the current file in File Explorer.
- Shift key enables `process-instance=multi`.
- Command line syntax (preceding double hyphen) is supported in mpv.conf for options implemented by mpv.net.
- MediaInfo v22.06
- libmpv shinchiro 2022-07-02

View File

@@ -482,10 +482,12 @@ playback automatically resumes.
Defines if more then one mpv.net process is allowed.
Tip: Whenever the CTRL key is pressed when files or URLs are opened,
Whenever the CTRL key is pressed when files or URLs are opened,
the playlist is not cleared but the files or URLs are appended to the playlist.
This not only works on process startup but in all mpv.net features that open files and URLs.
Multi can alternatively be enabled by pressing the SHIFT key.
**multi**
Create a new process everytime the shell starts mpv.net.

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("\"#"))