mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Allow renaming of movies that don't have an "Edition" (#432)
Fixes #405
This commit is contained in:
@@ -497,7 +497,10 @@ namespace NzbDrone.Core.Organizer
|
|||||||
|
|
||||||
private void AddTagsTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, MovieFile movieFile)
|
private void AddTagsTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, MovieFile movieFile)
|
||||||
{
|
{
|
||||||
tokenHandlers["{Edition Tags}"] = m => CultureInfo.CurrentCulture.TextInfo.ToTitleCase(movieFile.Edition.ToLower());
|
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)
|
private void AddReleaseDateTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, int releaseYear)
|
||||||
|
Reference in New Issue
Block a user