mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Hardbay: fix error on no results
This commit is contained in:
@@ -90,6 +90,8 @@ namespace Jackett.Indexers
|
||||
{
|
||||
//var json = JArray.Parse(results.Content);
|
||||
dynamic json = JsonConvert.DeserializeObject<dynamic>(results.Content);
|
||||
if (json != null) // no results
|
||||
{
|
||||
foreach (var row in json)
|
||||
{
|
||||
var release = new ReleaseInfo();
|
||||
@@ -136,6 +138,7 @@ namespace Jackett.Indexers
|
||||
releases.Add(release);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnParseError(results.Content, ex);
|
||||
|
Reference in New Issue
Block a user