1
0
Fork 0
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:
kaso17 2017-08-17 18:53:38 +02:00
parent d336a761a7
commit 502a4dc763

View file

@ -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
{