mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-30 23:47:17 +02:00
mejortorrent: ignore details pages that return http 500. resolves #15562
This commit is contained in:
@@ -298,7 +298,17 @@ namespace Jackett.Common.Indexers.Definitions
|
||||
{
|
||||
var result = await RequestWithCookiesAsync(detailsStr);
|
||||
if (result.Status != HttpStatusCode.OK)
|
||||
throw new ExceptionWithConfigData(result.ContentString, configData);
|
||||
{
|
||||
if (result.Status == HttpStatusCode.InternalServerError)
|
||||
{
|
||||
logger.Warn("Fetching {0} returned HTTP 500", detailsStr);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ExceptionWithConfigData(result.ContentString, configData);
|
||||
}
|
||||
}
|
||||
|
||||
var searchResultParser = new HtmlParser();
|
||||
using var doc = searchResultParser.ParseDocument(result.ContentString);
|
||||
@@ -338,7 +348,17 @@ namespace Jackett.Common.Indexers.Definitions
|
||||
|
||||
var result = await RequestWithCookiesAsync(detailsStr);
|
||||
if (result.Status != HttpStatusCode.OK)
|
||||
throw new ExceptionWithConfigData(result.ContentString, configData);
|
||||
{
|
||||
if (result.Status == HttpStatusCode.InternalServerError)
|
||||
{
|
||||
logger.Warn("Fetching {0} returned HTTP 500",detailsStr);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ExceptionWithConfigData(result.ContentString, configData);
|
||||
}
|
||||
}
|
||||
|
||||
var searchResultParser = new HtmlParser();
|
||||
using var doc = searchResultParser.ParseDocument(result.ContentString);
|
||||
|
Reference in New Issue
Block a user