mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Implemented Torrent Download Clients: uTorrent, Transmission and Deluge. And several public and private Torrent Indexers.
This commit is contained in:
parent
ffa814f387
commit
67cd5703a1
134 changed files with 11018 additions and 99 deletions
|
@ -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('\\', '/') + "/";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue