IPTorrents: fix error handling

This commit is contained in:
kaso17
2018-12-15 10:23:41 +01:00
parent 3339375a26
commit 1c1664e8cb

View File

@@ -249,7 +249,7 @@ namespace Jackett.Common.Indexers
var results = response.Content; var results = response.Content;
if (string.IsNullOrWhiteSpace(query.SearchTerm) && results.Contains("No Torrents Found!")) if (string.IsNullOrWhiteSpace(query.ImdbID) && string.IsNullOrWhiteSpace(query.SearchTerm) && results.Contains("No Torrents Found!"))
throw new Exception("Got No Torrents Found! Make sure your IPTorrents profile config contain proper default category settings."); throw new Exception("Got No Torrents Found! Make sure your IPTorrents profile config contain proper default category settings.");
try try