Fixed: Queue not loading when it contains unmapped releases

This commit is contained in:
Bogdan 2023-07-11 19:45:54 +03:00 committed by GitHub
parent c9e3890f73
commit 9854884ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ namespace Sonarr.Api.V3.Queue
}
var customFormats = model.RemoteEpisode?.CustomFormats;
var customFormatScore = model.Series.QualityProfile.Value.CalculateCustomFormatScore(customFormats);
var customFormatScore = model.Series?.QualityProfile?.Value?.CalculateCustomFormatScore(customFormats) ?? 0;
return new QueueResource
{