mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed: Error when nno quality was associated with a movie file.
Fixes #1991
This commit is contained in:
parent
3e2e085b6b
commit
2459ddb6f4
@ -633,6 +633,15 @@ private void AddQualityTokens(Dictionary<string, Func<TokenMatch, string>> token
|
||||
|
||||
private void AddQualityTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, Movie movie, MovieFile movieFile)
|
||||
{
|
||||
if (movieFile?.Quality?.Quality == null)
|
||||
{
|
||||
tokenHandlers["{Quality Full}"] = m => "";
|
||||
tokenHandlers["{Quality Title}"] = m => "";
|
||||
tokenHandlers["{Quality Proper}"] = m => "";
|
||||
tokenHandlers["{Quality Real}"] = m => "";
|
||||
return;
|
||||
}
|
||||
|
||||
var qualityTitle = _qualityDefinitionService.Get(movieFile.Quality.Quality).Title;
|
||||
var qualityProper = GetQualityProper(movie, movieFile.Quality);
|
||||
var qualityReal = GetQualityReal(movie, movieFile.Quality);
|
||||
|
Loading…
Reference in New Issue
Block a user