mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Really fix Certification Token
This commit is contained in:
parent
ea7c08d219
commit
8871864bc0
@ -236,10 +236,7 @@ private void AddMovieTokens(Dictionary<string, Func<TokenMatch, string>> tokenHa
|
||||
tokenHandlers["{Movie Title The}"] = m => TitleThe(movie.Title);
|
||||
tokenHandlers["{Movie TitleFirstCharacter}"] = m => TitleThe(movie.Title).Substring(0, 1).FirstCharToUpper();
|
||||
|
||||
if (movie.Certification.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
tokenHandlers["{Movie Certification}"] = mbox => movie.Certification;
|
||||
};
|
||||
tokenHandlers["{Movie Certification}"] = m => movie.Certification ?? string.Empty;
|
||||
}
|
||||
|
||||
private string GetLanguageTitle(Movie movie, string isoCodes)
|
||||
@ -299,7 +296,6 @@ private void AddMovieFileTokens(Dictionary<string, Func<TokenMatch, string>> tok
|
||||
tokenHandlers["{Original Title}"] = m => GetOriginalTitle(movieFile);
|
||||
tokenHandlers["{Original Filename}"] = m => GetOriginalFileName(movieFile);
|
||||
|
||||
//tokenHandlers["{IMDb Id}"] = m =>
|
||||
tokenHandlers["{Release Group}"] = m => movieFile.ReleaseGroup ?? m.DefaultValue("Radarr");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user