From f27f125072e9c305f3f93490c83ac6d20fa9110c Mon Sep 17 00:00:00 2001 From: datasone Date: Sun, 22 Jan 2023 15:54:12 +0800 Subject: [PATCH] More workarounds about the strict GetFileFromPathAsync API, fixes #12. --- MPVMediaControl/MediaController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MPVMediaControl/MediaController.cs b/MPVMediaControl/MediaController.cs index f43ac0b..599084a 100644 --- a/MPVMediaControl/MediaController.cs +++ b/MPVMediaControl/MediaController.cs @@ -203,7 +203,9 @@ public void Cleanup(bool cleanFile) public void UpdateShotPath(string path) { - File.ShotPath = path.Replace('/', '\\'); + var shotPath = path.Replace('/', '\\'); + shotPath = shotPath.Replace("\\\\", "\\"); + File.ShotPath = shotPath; File.ThumbnailObtained = false; try