diff --git a/MPVMediaControl/PipeServer.cs b/MPVMediaControl/PipeServer.cs index f0e9737..75c07c6 100644 --- a/MPVMediaControl/PipeServer.cs +++ b/MPVMediaControl/PipeServer.cs @@ -139,11 +139,11 @@ private static string FromHexString(string hexString) return System.Text.Encoding.UTF8.GetString(bytes); // returns: "Hello world" for "48656C6C6F20776F726C64" } - private static void ParseFile(MediaController controller, Dictionary parameters) + private static void ParseFile(MediaController controller, Dictionary parameters, bool nonHexPath = false) { var title = FromHexString(parameters["title"]); var artist = FromHexString(parameters["artist"]); - var path = FromHexString(parameters["path"]); + var path = nonHexPath ? parameters["path"] : FromHexString(parameters["path"]); var shotPath = FromHexString(parameters["shot_path"]); // Processing metadata may take some time, so only checking path isn't enough. @@ -155,12 +155,12 @@ private static void ParseFile(MediaController controller, Dictionary