mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 07:10:44 +00:00
New Real World: update URL and add relogin
This commit is contained in:
parent
d336a761a7
commit
502a4dc763
1 changed files with 8 additions and 1 deletions
|
@ -29,7 +29,7 @@ namespace Jackett.Indexers
|
|||
public NewRealWorld(IIndexerConfigurationService configService, IWebClient wc, Logger l, IProtectionService ps)
|
||||
: base(name: "New Real World",
|
||||
description: "A German general tracker.",
|
||||
link: "http://nrw-tracker.eu/",
|
||||
link: "https://nrw-tracker.eu/",
|
||||
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
|
||||
configService: configService,
|
||||
client: wc,
|
||||
|
@ -151,6 +151,13 @@ namespace Jackett.Indexers
|
|||
searchUrl += "?" + queryCollection.GetQueryString();
|
||||
|
||||
var response = await RequestStringWithCookies(searchUrl);
|
||||
if (response.IsRedirect)
|
||||
{
|
||||
// re-login
|
||||
await ApplyConfiguration(null);
|
||||
response = await RequestStringWithCookies(searchUrl);
|
||||
}
|
||||
|
||||
var results = response.Content;
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue