1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-02-22 14:11:16 +00:00

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

View file

@ -50,7 +50,7 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
throw new IndexerException(indexerResponse, "Indexer API call returned an error [{0}]", jsonResponse.Error); 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; return results;
} }