Skip to content

Commit

Permalink
More workarounds about the strict GetFileFromPathAsync API, fixes #12.
Browse files Browse the repository at this point in the history
  • Loading branch information
datasone committed Jan 22, 2023
1 parent fc0f009 commit f27f125
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MPVMediaControl/MediaController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f27f125

Please sign in to comment.