Fixed: Handling of no results from BTN searches

pull/5806/head
Bogdan 1 year ago committed by GitHub
parent e7bc145084
commit 45336389e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save