mirror of
https://github.com/Radarr/Radarr
synced 2025-02-25 15:43:08 +00:00
Allow renaming of movies that don't have an "Edition" (#432)
Fixes #405
This commit is contained in:
parent
b886566b25
commit
23232b9830
1 changed files with 4 additions and 1 deletions
|
@ -496,9 +496,12 @@ private void AddMovieTokens(Dictionary<string, Func<TokenMatch, string>> tokenHa
|
|||
}
|
||||
|
||||
private void AddTagsTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, MovieFile movieFile)
|
||||
{
|
||||
if (movieFile.Edition.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
tokenHandlers["{Edition Tags}"] = m => CultureInfo.CurrentCulture.TextInfo.ToTitleCase(movieFile.Edition.ToLower());
|
||||
}
|
||||
}
|
||||
|
||||
private void AddReleaseDateTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, int releaseYear)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue