Support --audio-file and --sub-file aliases
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
- The show-info command shows directly an advanced view which was enhanced with a General section and the filename.
|
- The show-info command shows directly an advanced view which was enhanced with a General section and the filename.
|
||||||
- Media info titles are shortened if they contain duplicated or obvious information.
|
- Media info titles are shortened if they contain duplicated or obvious information.
|
||||||
- Support of shortcuts (.lnk files) with media file target.
|
- Support of shortcuts (.lnk files) with media file target.
|
||||||
|
- Support --audio-file and --sub-file aliases.
|
||||||
- playlist-random command jumps to a random playlist entry, default key binding is F9.
|
- playlist-random command jumps to a random playlist entry, default key binding is F9.
|
||||||
- Fix OSC hide behavior on mouse move.
|
- Fix OSC hide behavior on mouse move.
|
||||||
- Fix external audio tracks not shown correctly in tracks context menu.
|
- Fix external audio tracks not shown correctly in tracks context menu.
|
||||||
|
|||||||
@@ -1132,11 +1132,13 @@ namespace mpvnet
|
|||||||
string left = arg.Substring(2, arg.IndexOf("=") - 2);
|
string left = arg.Substring(2, arg.IndexOf("=") - 2);
|
||||||
string right = arg.Substring(left.Length + 3);
|
string right = arg.Substring(left.Length + 3);
|
||||||
|
|
||||||
if (left == "script")
|
switch (left)
|
||||||
left = "scripts";
|
{
|
||||||
|
case "script": left = "scripts"; break;
|
||||||
if (left == "external-file")
|
case "audio-file": left = "audio-files"; break;
|
||||||
left = "external-files";
|
case "sub-file": left = "sub-files"; break;
|
||||||
|
case "external-file": left = "external-files"; break;
|
||||||
|
}
|
||||||
|
|
||||||
if (preInit && preInitProperties.Contains(left))
|
if (preInit && preInitProperties.Contains(left))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user