7Tor: add automatic relogin

This commit is contained in:
kaso17 2017-09-01 18:17:14 +02:00
parent 92bda2b09b
commit 93ec102a86
1 changed files with 5 additions and 0 deletions

View File

@ -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";