Allow renaming of movies that don't have an "Edition" (#432)

Fixes #405
pull/2/head
Tim Turner 8 years ago committed by GitHub
parent b886566b25
commit 23232b9830

@ -496,9 +496,12 @@ namespace NzbDrone.Core.Organizer
}
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…
Cancel
Save