mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 07:10:44 +00:00
BJShare: ad re-login
This commit is contained in:
parent
dfd1ec375b
commit
573ba5b41f
1 changed files with 12 additions and 0 deletions
|
@ -139,6 +139,12 @@ namespace Jackett.Common.Indexers
|
|||
if (string.IsNullOrWhiteSpace(query.SearchTerm) && !query.IsImdbQuery)
|
||||
{
|
||||
var results = await RequestStringWithCookies(TodayUrl);
|
||||
if (results.IsRedirect)
|
||||
{
|
||||
// re-login
|
||||
await ApplyConfiguration(null);
|
||||
results = await RequestStringWithCookies(TodayUrl);
|
||||
}
|
||||
try
|
||||
{
|
||||
const string rowsSelector = "table.torrent_table > tbody > tr:not(tr.colhead)";
|
||||
|
@ -274,6 +280,12 @@ namespace Jackett.Common.Indexers
|
|||
searchUrl += "?" + queryCollection.GetQueryString();
|
||||
|
||||
var results = await RequestStringWithCookies(searchUrl);
|
||||
if (results.IsRedirect)
|
||||
{
|
||||
// re-login
|
||||
await ApplyConfiguration(null);
|
||||
results = await RequestStringWithCookies(searchUrl);
|
||||
}
|
||||
try
|
||||
{
|
||||
const string rowsSelector = "table.torrent_table > tbody > tr:not(tr.colhead)";
|
||||
|
|
Loading…
Reference in a new issue