GazelleGames: add relogin detection

This commit is contained in:
kaso17 2018-05-24 16:13:13 +02:00
parent 313147d224
commit 54465798e9
1 changed files with 5 additions and 0 deletions

View File

@ -219,6 +219,11 @@ namespace Jackett.Common.Indexers
searchUrl += "?" + queryCollection.GetQueryString();
var results = await RequestStringWithCookies(searchUrl);
if (results.IsRedirect && results.RedirectingTo.EndsWith("login.php"))
{
throw new Exception("relogin needed, please update your cookie");
}
try
{
string RowsSelector = ".torrent_table > tbody > tr";