From e07627377ead053d66ff2e69ae6a740d83f2d473 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Thu, 27 Jun 2019 07:44:23 +0200 Subject: [PATCH] - --- addons/RatingAddon/RatingAddon.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/RatingAddon/RatingAddon.cs b/addons/RatingAddon/RatingAddon.cs index 31766ae..87dcc9b 100644 --- a/addons/RatingAddon/RatingAddon.cs +++ b/addons/RatingAddon/RatingAddon.cs @@ -1,4 +1,7 @@ -using System; +// this addon writes a rating to the filename of the current video, +// the input.conf defaults contain key bindings for this addon + +using System; using System.ComponentModel.Composition; using System.Collections.Generic; using System.IO; @@ -14,7 +17,7 @@ namespace RatingAddon public RatingAddon() { - mp.ClientMessage += ClientMessage; + mp.ClientMessage += ClientMessage; //handles keys defined in input.conf mp.Shutdown += Shutdown; } @@ -44,6 +47,7 @@ namespace RatingAddon } } + //handles keys defined in input.conf void ClientMessage(string[] args) { if (args.Length != 2 || args[0] != "rate-file" || ! int.TryParse(args[1], out int rating))