From fbeeb3f01579a7c11d21a7e2d92770a7b181c481 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Sun, 18 Jul 2021 14:54:07 +0200 Subject: [PATCH] manual update --- docs/Manual.md | 10 ++++++++-- src/Scripts/C-Sharp/rate-file.cs | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/Manual.md b/docs/Manual.md index 5d87548..5dad2a4 100644 --- a/docs/Manual.md +++ b/docs/Manual.md @@ -622,11 +622,17 @@ need an own implementation in mpv.net, so far implemented are: --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 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 -[here](#mpvnet-specific-options). +in the search field of the config editor, in the mpv.net manual they are +documented [here](#mpvnet-specific-options). mpv.net specific options are saved in the file mpvnet.conf and are just as mpv properties available on the command line. diff --git a/src/Scripts/C-Sharp/rate-file.cs b/src/Scripts/C-Sharp/rate-file.cs index 0f4cfed..11c11e0 100644 --- a/src/Scripts/C-Sharp/rate-file.cs +++ b/src/Scripts/C-Sharp/rate-file.cs @@ -62,7 +62,7 @@ class Script //handles keys defined in input.conf void ClientMessage(string[] args) { - if (args[0] != "rate-file") + if (args == null || args.Length != 2 || args[0] != "rate-file") return; int rating; @@ -77,5 +77,8 @@ class Script Dic[path] = 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"); } }