Go to http if def exists on def server

This commit is contained in:
Qstick 2022-02-06 16:11:42 -05:00 committed by GitHub
parent dab4500b16
commit 94ef3ea88f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,7 +204,7 @@ namespace NzbDrone.Core.IndexerVersions
var dbDefs = _versionService.All();
//Check to ensure it's in versioned defs before we go to web
if (dbDefs.Count > 0 && dbDefs.Any(x => x.File == fileKey))
if (dbDefs.Count > 0 && !dbDefs.Any(x => x.File == fileKey))
{
throw new ArgumentNullException(nameof(fileKey));
}