1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-23 23:00:51 +00:00

IPTorrents: add no torrents found check

This commit is contained in:
kaso17 2018-12-02 10:33:18 +01:00
parent bcfccd83d4
commit 74e8518060

View file

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