Fixed: Error logged when checking if v2+ anime release is a valid upgrade
Fixes #3114
This commit is contained in:
parent
068eb33bf6
commit
0fe7da80ab
|
@ -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))
|
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 (_upgradableSpecification.IsRevisionUpgrade(file.Quality, subject.ParsedEpisodeInfo.Quality))
|
||||||
{
|
{
|
||||||
if (file.ReleaseGroup.IsNullOrWhiteSpace())
|
if (file.ReleaseGroup.IsNullOrWhiteSpace())
|
||||||
|
|
Loading…
Reference in New Issue