1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Merge pull request #22 from AeonLucid/develop

Replace colon in movie path.
This commit is contained in:
Leonardo Galli 2017-01-04 18:42:01 +01:00 committed by GitHub
commit 5668a3bcfd

View File

@ -346,7 +346,9 @@ public static string CleanFileName(string name, bool replace = true)
public static string CleanFolderName(string name)
{
name = FileNameCleanupRegex.Replace(name, match => match.Captures[0].Value[0].ToString());
return name.Trim(' ', '.');
name = name.Trim(' ', '.');
return name.Replace(":", " -");
}
private void AddSeriesTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, Series series)