7Tor: add automatic relogin

This commit is contained in:
kaso17
2017-09-01 18:17:14 +02:00
parent 92bda2b09b
commit 93ec102a86

View File

@@ -1641,6 +1641,11 @@ namespace Jackett.Indexers
var searchUrl = SearchUrl + "?" + queryCollection.GetQueryString();
results = await RequestStringWithCookies(searchUrl);
if (!results.Content.Contains("ucp.php?mode=logout"))
{
await ApplyConfiguration(null);
results = await RequestStringWithCookies(searchUrl);
}
try
{
string RowsSelector = "ul.topics > li";