From f696a1b1257495c4125a41a65c4a67d2635049d5 Mon Sep 17 00:00:00 2001 From: datasone Date: Tue, 28 Sep 2021 16:56:51 +0800 Subject: [PATCH] Fixed faulty cue/edl file parsing --- MPVMediaControl/PipeServer.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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