mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
New: Implemented Torrent Download Clients: uTorrent, Transmission and Deluge. And several public and private Torrent Indexers.
This commit is contained in:
@@ -209,13 +209,13 @@ namespace NzbDrone.Core.RemotePathMappings
|
||||
|
||||
private static String CleanPath(String path)
|
||||
{
|
||||
if (path.Contains('\\'))
|
||||
if (path.StartsWith(@"\\") || path.Contains(':'))
|
||||
{
|
||||
return path.TrimEnd('\\', '/') + "\\";
|
||||
return path.TrimEnd('\\', '/').Replace('/', '\\') + "\\";
|
||||
}
|
||||
else
|
||||
{
|
||||
return path.TrimEnd('\\', '/') + "/";
|
||||
return path.TrimEnd('\\', '/').Replace('\\', '/') + "/";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user