mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
BroadcastTheNet: fix error on no results
This commit is contained in:
@@ -107,7 +107,7 @@ namespace Jackett.Indexers
|
|||||||
{
|
{
|
||||||
var btnResponse = JsonConvert.DeserializeObject<BTNRPCResponse>(response.Content);
|
var btnResponse = JsonConvert.DeserializeObject<BTNRPCResponse>(response.Content);
|
||||||
|
|
||||||
if (btnResponse != null && btnResponse.Result != null)
|
if (btnResponse != null && btnResponse.Result != null && btnResponse.Result.Torrents != null)
|
||||||
{
|
{
|
||||||
foreach (var itemKey in btnResponse.Result.Torrents)
|
foreach (var itemKey in btnResponse.Result.Torrents)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user