mejortorrent: ignore details pages that return http 500. resolves #15562

This commit is contained in:
Garfield69
2025-04-26 08:28:04 +12:00
parent 4119b457cd
commit 3b1629a0db

View File

@@ -298,7 +298,17 @@ namespace Jackett.Common.Indexers.Definitions
{
var result = await RequestWithCookiesAsync(detailsStr);
if (result.Status != HttpStatusCode.OK)
{
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)
{
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);