mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -216,8 +216,8 @@ namespace Jackett.Common.Indexers
|
|||||||
Match match = matcher.MatchRegex.Match(content);
|
Match match = matcher.MatchRegex.Match(content);
|
||||||
if (match.Success)
|
if (match.Success)
|
||||||
{
|
{
|
||||||
string linkText;
|
string linkText;
|
||||||
|
|
||||||
if (matcher.MatchEvaluator != null)
|
if (matcher.MatchEvaluator != null)
|
||||||
linkText = (string)matcher.MatchEvaluator.DynamicInvoke(match);
|
linkText = (string)matcher.MatchEvaluator.DynamicInvoke(match);
|
||||||
else
|
else
|
||||||
@@ -238,8 +238,8 @@ namespace Jackett.Common.Indexers
|
|||||||
uris.Add(DefaultSiteLinkUri);
|
uris.Add(DefaultSiteLinkUri);
|
||||||
|
|
||||||
uris = uris.Concat(ExtraSiteLinkUris.
|
uris = uris.Concat(ExtraSiteLinkUris.
|
||||||
Where(u =>
|
Where(u =>
|
||||||
(u.Scheme != referenceLink.Scheme || u.Host != referenceLink.Host) &&
|
(u.Scheme != referenceLink.Scheme || u.Host != referenceLink.Host) &&
|
||||||
(u.Scheme != DefaultSiteLinkUri.Scheme || u.Host != DefaultSiteLinkUri.Host))).ToList();
|
(u.Scheme != DefaultSiteLinkUri.Scheme || u.Host != DefaultSiteLinkUri.Host))).ToList();
|
||||||
|
|
||||||
List<Uri> result = new List<Uri>();
|
List<Uri> result = new List<Uri>();
|
||||||
@@ -631,7 +631,14 @@ namespace Jackett.Common.Indexers
|
|||||||
else
|
else
|
||||||
uri = uris.Current;
|
uri = uris.Current;
|
||||||
|
|
||||||
results = await PostDataWithCookies(uri.AbsoluteUri, queryCollection);
|
try
|
||||||
|
{
|
||||||
|
results = await PostDataWithCookies(uri.AbsoluteUri, queryCollection);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
results = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (results != null && !string.IsNullOrEmpty(results.Content))
|
if (results != null && !string.IsNullOrEmpty(results.Content))
|
||||||
{
|
{
|
||||||
@@ -721,7 +728,7 @@ namespace Jackett.Common.Indexers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
OnParseError(content, ex);
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!someFound)
|
if (!someFound)
|
||||||
@@ -786,7 +793,7 @@ namespace Jackett.Common.Indexers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
OnParseError(content, ex);
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!someFound)
|
if (!someFound)
|
||||||
|
Reference in New Issue
Block a user