erai-raws: Switch back to main site (#12185) Resolves #12183

This commit is contained in:
6cUbi57z 2021-08-18 23:31:20 +01:00 committed by GitHub
parent 3ee564deed
commit 9bd3bb2e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 9 deletions

View File

@ -19,14 +19,8 @@ namespace Jackett.Common.Indexers
const string RSS_PATH = "feed/?type=magnet";
public override string[] AlternativeSiteLinks { get; protected set; } = {
// At some point the beta site will probably replace the current one
// At that point, these can probably be re-enabled.
// "https://www.erai-raws.info/",
// "https://erairaws.nocensor.space/"
};
public override string[] LegacySiteLinks { get; protected set; } = {
"https://www.erai-raws.info/",
"https://beta.erai-raws.info/",
"https://erairaws.nocensor.space/"
};
@ -35,8 +29,7 @@ namespace Jackett.Common.Indexers
: base(id: "erai-raws",
name: "Erai-Raws",
description: "Erai-Raws is a team release site for Anime subtitles.",
//link: "https://www.erai-raws.info/",
link: "https://beta.erai-raws.info/",
link: "https://www.erai-raws.info/",
caps: new TorznabCapabilities
{
TvSearchParams = new List<TvSearchParam>
@ -111,6 +104,8 @@ namespace Jackett.Common.Indexers
{
// Retrieve RSS feed
var result = await RequestWithCookiesAndRetryAsync(RssFeedUri);
if (result.IsRedirect)
await FollowIfRedirect(result);
// Parse as XML document
var xmlDocument = new XmlDocument();