From 45336389e6b08381b34d2b157c718a2e87c7b0e7 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 12 Jul 2023 03:13:07 +0300 Subject: [PATCH] Fixed: Handling of no results from BTN searches --- .../Indexers/BroadcastheNet/BroadcastheNetParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetParser.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetParser.cs index 51469b0ff..f135a9db6 100644 --- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetParser.cs +++ b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetParser.cs @@ -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; }