mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
New Real World: update URL and add relogin
This commit is contained in:
@@ -29,7 +29,7 @@ namespace Jackett.Indexers
|
|||||||
public NewRealWorld(IIndexerConfigurationService configService, IWebClient wc, Logger l, IProtectionService ps)
|
public NewRealWorld(IIndexerConfigurationService configService, IWebClient wc, Logger l, IProtectionService ps)
|
||||||
: base(name: "New Real World",
|
: base(name: "New Real World",
|
||||||
description: "A German general tracker.",
|
description: "A German general tracker.",
|
||||||
link: "http://nrw-tracker.eu/",
|
link: "https://nrw-tracker.eu/",
|
||||||
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
|
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
|
||||||
configService: configService,
|
configService: configService,
|
||||||
client: wc,
|
client: wc,
|
||||||
@@ -151,6 +151,13 @@ namespace Jackett.Indexers
|
|||||||
searchUrl += "?" + queryCollection.GetQueryString();
|
searchUrl += "?" + queryCollection.GetQueryString();
|
||||||
|
|
||||||
var response = await RequestStringWithCookies(searchUrl);
|
var response = await RequestStringWithCookies(searchUrl);
|
||||||
|
if (response.IsRedirect)
|
||||||
|
{
|
||||||
|
// re-login
|
||||||
|
await ApplyConfiguration(null);
|
||||||
|
response = await RequestStringWithCookies(searchUrl);
|
||||||
|
}
|
||||||
|
|
||||||
var results = response.Content;
|
var results = response.Content;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user