manual update
This commit is contained in:
@@ -622,11 +622,17 @@ need an own implementation in mpv.net, so far implemented are:
|
|||||||
--version
|
--version
|
||||||
|
|
||||||
|
|
||||||
|
### Scripting limitations (Lua and JavaScript)
|
||||||
|
|
||||||
|
Script input bindings (mp.add_key_binding) are not direcly supported,
|
||||||
|
the bindings must be defined explicitly in input.conf.
|
||||||
|
|
||||||
|
|
||||||
### mpv.net specific options
|
### mpv.net specific options
|
||||||
|
|
||||||
Options that are specific to mpv.net can be found by entering _mpv.net_
|
Options that are specific to mpv.net can be found by entering _mpv.net_
|
||||||
in the search field of the config editor, in the manual they are documented
|
in the search field of the config editor, in the mpv.net manual they are
|
||||||
[here](#mpvnet-specific-options).
|
documented [here](#mpvnet-specific-options).
|
||||||
|
|
||||||
mpv.net specific options are saved in the file mpvnet.conf and are just
|
mpv.net specific options are saved in the file mpvnet.conf and are just
|
||||||
as mpv properties available on the command line.
|
as mpv properties available on the command line.
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class Script
|
|||||||
//handles keys defined in input.conf
|
//handles keys defined in input.conf
|
||||||
void ClientMessage(string[] args)
|
void ClientMessage(string[] args)
|
||||||
{
|
{
|
||||||
if (args[0] != "rate-file")
|
if (args == null || args.Length != 2 || args[0] != "rate-file")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int rating;
|
int rating;
|
||||||
@@ -77,5 +77,8 @@ class Script
|
|||||||
Dic[path] = rating;
|
Dic[path] = rating;
|
||||||
Core.CommandV("show-text", "Rating: " + rating);
|
Core.CommandV("show-text", "Rating: " + rating);
|
||||||
}
|
}
|
||||||
|
else if (args[1] == "about")
|
||||||
|
MessageBox.Show("This extension writes a rating to the filename of rated videos when mpv.net shuts down.",
|
||||||
|
"Rating Extension");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user