mirror of
https://github.com/Radarr/Radarr
synced 2024-12-27 02:09:59 +00:00
Merge pull request #22 from AeonLucid/develop
Replace colon in movie path.
This commit is contained in:
commit
5668a3bcfd
1 changed files with 3 additions and 1 deletions
|
@ -346,7 +346,9 @@ public static string CleanFileName(string name, bool replace = true)
|
||||||
public static string CleanFolderName(string name)
|
public static string CleanFolderName(string name)
|
||||||
{
|
{
|
||||||
name = FileNameCleanupRegex.Replace(name, match => match.Captures[0].Value[0].ToString());
|
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)
|
private void AddSeriesTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, Series series)
|
||||||
|
|
Loading…
Reference in a new issue