Fixed: Handling of no results from BTN searches

This commit is contained in:
Bogdan 2023-07-12 03:13:07 +03:00 committed by GitHub
parent e7bc145084
commit 45336389e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
throw new IndexerException(indexerResponse, "Indexer API call returned an error [{0}]", jsonResponse.Error);
}
if (jsonResponse.Result.Results == 0)
if (jsonResponse.Result.Results == 0 || jsonResponse.Result.Torrents?.Values == null)
{
return results;
}