mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-10 23:29:53 +02:00
Normalize path will now just clean it up, no longer returns the string in all lower-case.
This commit is contained in:
parent
2871723bfe
commit
64a1b2d28d
@ -183,6 +183,7 @@ internal static string NormalizeTitle(string title)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Note: changing case on path is a problem for running on mono/*nix
|
//Note: changing case on path is a problem for running on mono/*nix
|
||||||
|
//Not going to change the casing any more... Looks Ugly in UI anyways :P
|
||||||
public static string NormalizePath(string path)
|
public static string NormalizePath(string path)
|
||||||
{
|
{
|
||||||
if (String.IsNullOrEmpty(path))
|
if (String.IsNullOrEmpty(path))
|
||||||
@ -192,10 +193,10 @@ public static string NormalizePath(string path)
|
|||||||
|
|
||||||
if (info.FullName.StartsWith(@"\\")) //UNC
|
if (info.FullName.StartsWith(@"\\")) //UNC
|
||||||
{
|
{
|
||||||
return info.FullName.ToLower().TrimEnd('/', '\\', ' ');
|
return info.FullName.TrimEnd('/', '\\', ' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
return info.FullName.ToLower().Trim('/', '\\', ' ');
|
return info.FullName.Trim('/', '\\', ' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static NzbInfoModel ParseNzbInfo(FeedInfoModel feed, RssItem item)
|
public static NzbInfoModel ParseNzbInfo(FeedInfoModel feed, RssItem item)
|
||||||
|
Loading…
Reference in New Issue
Block a user