manual update

This commit is contained in:
Frank Skare
2021-07-18 14:54:07 +02:00
parent 48735a602a
commit fbeeb3f015
2 changed files with 12 additions and 3 deletions

View File

@@ -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");
}
}