mirror of
https://github.com/Jackett/Jackett
synced 2025-03-09 05:16:55 +00:00
parent
5e2aa247bb
commit
69ba8c47f4
1 changed files with 7 additions and 0 deletions
|
@ -164,6 +164,13 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
var results = await RequestWithCookiesAndRetryAsync(searchUrl);
|
||||
|
||||
// Occasionally the cookies become invalid, login again if that happens
|
||||
if (results.ContentString.Contains("Error:You're not authorized"))
|
||||
{
|
||||
await ApplyConfiguration(null);
|
||||
results = await RequestWithCookiesAndRetryAsync(searchUrl);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var parser = new HtmlParser();
|
||||
|
|
Loading…
Add table
Reference in a new issue