New: Implemented Torrent Download Clients: uTorrent, Transmission and Deluge. And several public and private Torrent Indexers.

This commit is contained in:
MythJuha 2014-05-13 19:57:46 +02:00 committed by Taloth Saldono
parent ffa814f387
commit 67cd5703a1
134 changed files with 11018 additions and 99 deletions

View file

@ -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('\\', '/') + "/";
}
}
}