mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-30 23:47:17 +02:00
erairaws: new rss token path + new invalid token detection. resolves #15687
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Jackett.Common.Indexers.Definitions
|
||||
|
||||
public override TorznabCapabilities TorznabCaps => SetCapabilities();
|
||||
|
||||
const string RSS_PATH = "feed/?type=magnet";
|
||||
const string RSS_PATH = "feed/?type=magnet&token=";
|
||||
|
||||
public EraiRaws(IIndexerConfigurationService configService, Utils.Clients.WebClient wc, Logger l,
|
||||
IProtectionService ps, ICacheService cs)
|
||||
@@ -91,7 +91,7 @@ namespace Jackett.Common.Indexers.Definitions
|
||||
private bool IsTitleDetailParsingEnabled => ((BoolConfigurationItem)configData.GetDynamic("title-detail-parsing")).Value;
|
||||
private bool IsSubsEnabled => ((BoolConfigurationItem)configData.GetDynamic("include-subs")).Value;
|
||||
|
||||
public string RssFeedUri => SiteLink + RSS_PATH + "&" + RSSKey;
|
||||
public string RssFeedUri => SiteLink + RSS_PATH + RSSKey;
|
||||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
@@ -122,7 +122,7 @@ namespace Jackett.Common.Indexers.Definitions
|
||||
var result = await RequestWithCookiesAndRetryAsync(RssFeedUri);
|
||||
if (result.IsRedirect)
|
||||
result = await FollowIfRedirect(result);
|
||||
if (result.ContentString.Contains("403 Forbidden"))
|
||||
if (result.ContentString.Contains("<status>403</status>"))
|
||||
{
|
||||
logger.Error("[EraiRaws] 403 Forbidden");
|
||||
throw new Exception("The RSSkey may need to be replaced as EraiRaws returned 403 Forbidden.");
|
||||
|
Reference in New Issue
Block a user