[Newpct] fix No results error (#6567) resolves #6551

This commit is contained in:
snamds
2019-12-10 00:25:25 +01:00
committed by garfield69
parent 9c3f1134b9
commit 453165e081

View File

@@ -631,7 +631,14 @@ namespace Jackett.Common.Indexers
else else
uri = uris.Current; uri = uris.Current;
try
{
results = await PostDataWithCookies(uri.AbsoluteUri, queryCollection); 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)