mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
EraiRaws: detect expired RSSkey
This commit is contained in:
@@ -122,6 +122,11 @@ namespace Jackett.Common.Indexers.Definitions
|
|||||||
var result = await RequestWithCookiesAndRetryAsync(RssFeedUri);
|
var result = await RequestWithCookiesAndRetryAsync(RssFeedUri);
|
||||||
if (result.IsRedirect)
|
if (result.IsRedirect)
|
||||||
result = await FollowIfRedirect(result);
|
result = await FollowIfRedirect(result);
|
||||||
|
if (result.ContentString.Contains("403 Forbidden"))
|
||||||
|
{
|
||||||
|
logger.Error("[EraiRaws]" + result.ContentString);
|
||||||
|
throw new Exception("The RSSkey may need to be replaced as EraiRaws returned 403 Forbidden.");
|
||||||
|
}
|
||||||
|
|
||||||
// Parse as XML document
|
// Parse as XML document
|
||||||
var xmlDocument = new XmlDocument();
|
var xmlDocument = new XmlDocument();
|
||||||
|
Reference in New Issue
Block a user