mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -187,15 +187,18 @@ namespace Jackett.Common.Indexers
|
|||||||
qParams.Add("freeleech", "on");
|
qParams.Add("freeleech", "on");
|
||||||
|
|
||||||
var searchUrl = SearchUrl + "?" + qParams.GetQueryString();
|
var searchUrl = SearchUrl + "?" + qParams.GetQueryString();
|
||||||
|
|
||||||
var results = await RequestStringWithCookies(searchUrl);
|
var results = await RequestStringWithCookies(searchUrl);
|
||||||
|
|
||||||
|
// response without results (the message is misleading)
|
||||||
|
if (results.Content?.Contains("slow down geek!!!") == true)
|
||||||
|
return new List<ReleaseInfo>();
|
||||||
|
|
||||||
|
// not logged in
|
||||||
if (results.Content == null || !results.Content.Contains("/logout.php"))
|
if (results.Content == null || !results.Content.Contains("/logout.php"))
|
||||||
throw new Exception("The user is not logged in. It is possible that the cookie has expired or you " +
|
throw new Exception("The user is not logged in. It is possible that the cookie has expired or you " +
|
||||||
"made a mistake when copying it. Please check the settings.");
|
"made a mistake when copying it. Please check the settings.");
|
||||||
|
|
||||||
var releases = ParseResponse(query, results.Content);
|
return ParseResponse(query, results.Content);
|
||||||
|
|
||||||
return releases;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ReleaseInfo> ParseResponse(TorznabQuery query, string htmlResponse)
|
private List<ReleaseInfo> ParseResponse(TorznabQuery query, string htmlResponse)
|
||||||
|
Reference in New Issue
Block a user