mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 14:14:25 +00:00
core: cardigann json no results enhancement #13223
This commit is contained in:
parent
a74d1fc31c
commit
4f7644b692
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue