From 74e85180609fd37bd09dedece17938c75c8313ee Mon Sep 17 00:00:00 2001 From: kaso17 Date: Sun, 2 Dec 2018 10:33:18 +0100 Subject: [PATCH] IPTorrents: add no torrents found check --- src/Jackett.Common/Indexers/IPTorrents.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Jackett.Common/Indexers/IPTorrents.cs b/src/Jackett.Common/Indexers/IPTorrents.cs index 34eeed057..8b35aa1a4 100644 --- a/src/Jackett.Common/Indexers/IPTorrents.cs +++ b/src/Jackett.Common/Indexers/IPTorrents.cs @@ -248,6 +248,10 @@ namespace Jackett.Common.Indexers var response = await RequestStringWithCookiesAndRetry(searchUrl, null, BrowseUrl); var results = response.Content; + + if (query.IsTest && results.Contains("No Torrents Found!")) + throw new Exception("Got No Torrents Found! Make sure your IPTorrents profile config contain proper default category settings."); + try { CQ dom = results;