mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 06:03:09 +00:00
EraiRaws: detect expired RSSkey
This commit is contained in:
parent
64d91b30d6
commit
d35b75ca8e
1 changed files with 5 additions and 0 deletions
|
@ -122,6 +122,11 @@ namespace Jackett.Common.Indexers.Definitions
|
|||
var result = await RequestWithCookiesAndRetryAsync(RssFeedUri);
|
||||
if (result.IsRedirect)
|
||||
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
|
||||
var xmlDocument = new XmlDocument();
|
||||
|
|
Loading…
Add table
Reference in a new issue