1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 07:22:35 +01:00

Fixed: Error logged when checking if v2+ anime release is a valid upgrade

Fixes #3114
This commit is contained in:
Mark McDowall 2019-05-12 16:25:57 -07:00
parent 068eb33bf6
commit 0fe7da80ab

View File

@ -32,6 +32,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
foreach (var file in subject.Episodes.Where(c => c.EpisodeFileId != 0).Select(c => c.EpisodeFile.Value))
{
if (file == null)
{
continue;
}
if (_upgradableSpecification.IsRevisionUpgrade(file.Quality, subject.ParsedEpisodeInfo.Quality))
{
if (file.ReleaseGroup.IsNullOrWhiteSpace())