mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 17:29:30 -06:00
fixing plex node
This commit is contained in:
@@ -48,9 +48,9 @@ public abstract class PlexNode:Node
|
||||
args.Logger?.ILog("Working File (Unmapped): " + path);
|
||||
if (args.IsDirectory == false)
|
||||
{
|
||||
bool windows = path.StartsWith("\\") || Regex.IsMatch(path, @"^[a-zA-Z]:\\");
|
||||
string pathSeparator = windows ? "\\" : "/";
|
||||
path = path.Substring(0, path.LastIndexOf(pathSeparator));
|
||||
// juse use /
|
||||
path = path.Replace("\\", "/");
|
||||
path = path.Substring(0, path.LastIndexOf("/"));
|
||||
}
|
||||
|
||||
if (serverUrl.EndsWith("/") == false)
|
||||
|
||||
Reference in New Issue
Block a user