From df17ac81462d2208157979ed727dea0f6a2dd426 Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Sun, 31 Jan 2021 12:00:12 +0100 Subject: [PATCH] cinemaz/avistaz: fix response without results. resolves #10884 (#10977) --- src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs b/src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs index 7062ca852..234c5efda 100644 --- a/src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs +++ b/src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs @@ -165,6 +165,8 @@ without this configuration the torrent download does not work.
You can find await RenewalTokenAsync(); response = await RequestWithCookiesAndRetryAsync(episodeSearchUrl, headers: GetSearchHeaders()); } + else if (response.Status == HttpStatusCode.NotFound) + return releases; // search without results, eg CinemaZ: tt0075998 else if (response.Status != HttpStatusCode.OK) throw new Exception($"Unknown error: {response.ContentString}");