1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 06:03:09 +00:00

scenetime: add query retry. resolves #13328

This commit is contained in:
Garfield69 2022-06-30 09:40:10 +12:00
parent 121820c837
commit bc4703574c

View file

@ -133,7 +133,12 @@ namespace Jackett.Common.Indexers
// response without results (the message is misleading) // response without results (the message is misleading)
if (results.ContentString?.Contains("slow down geek!!!") == true) if (results.ContentString?.Contains("slow down geek!!!") == true)
return new List<ReleaseInfo>(); {
logger.Warn($"SceneTime: Query Limit exceeded, retrying in 5 seconds.");
webclient.requestDelay = 5;
results = await RequestWithCookiesAsync(searchUrl);
webclient.requestDelay = 0;
}
// not logged in // not logged in
if (results.ContentString == null || !results.ContentString.Contains("/logout.php")) if (results.ContentString == null || !results.ContentString.Contains("/logout.php"))