mirror of https://github.com/Jackett/Jackett
7Tor: add automatic relogin
This commit is contained in:
parent
92bda2b09b
commit
93ec102a86
|
@ -1641,6 +1641,11 @@ namespace Jackett.Indexers
|
||||||
|
|
||||||
var searchUrl = SearchUrl + "?" + queryCollection.GetQueryString();
|
var searchUrl = SearchUrl + "?" + queryCollection.GetQueryString();
|
||||||
results = await RequestStringWithCookies(searchUrl);
|
results = await RequestStringWithCookies(searchUrl);
|
||||||
|
if (!results.Content.Contains("ucp.php?mode=logout"))
|
||||||
|
{
|
||||||
|
await ApplyConfiguration(null);
|
||||||
|
results = await RequestStringWithCookies(searchUrl);
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string RowsSelector = "ul.topics > li";
|
string RowsSelector = "ul.topics > li";
|
||||||
|
|
Loading…
Reference in New Issue