From 4f7644b69216b3d7d694cf4f9184aa01776b24cd Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 5 May 2022 06:11:08 +1200 Subject: [PATCH] core: cardigann json no results enhancement #13223 --- src/Jackett.Common/Indexers/CardigannIndexer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Indexers/CardigannIndexer.cs b/src/Jackett.Common/Indexers/CardigannIndexer.cs index 4f51020d5..f01f1a277 100644 --- a/src/Jackett.Common/Indexers/CardigannIndexer.cs +++ b/src/Jackett.Common/Indexers/CardigannIndexer.cs @@ -1399,7 +1399,10 @@ namespace Jackett.Common.Indexers { if (response.Status != HttpStatusCode.OK) throw new Exception($"Error Parsing Json Response: Status={response.Status} Response={results}"); - if (response.Status == HttpStatusCode.OK && SearchPath.Response != null && SearchPath.Response.NoResultsMessage != null && ((SearchPath.Response.NoResultsMessage.Equals(results)) || (SearchPath.Response.NoResultsMessage == String.Empty && results == String.Empty))) + if (response.Status == HttpStatusCode.OK + && SearchPath.Response != null + && SearchPath.Response.NoResultsMessage != null + && (results.Contains(SearchPath.Response.NoResultsMessage) || (SearchPath.Response.NoResultsMessage == String.Empty && results == String.Empty))) continue; var parsedJson = JToken.Parse(results); if (parsedJson == null)