YIFI: handle movies without torrents

This commit is contained in:
Garfield69
2018-01-31 07:12:01 +13:00
parent 85f522b055
commit 6dae7cd11d

View File

@@ -112,7 +112,10 @@ namespace Jackett.Indexers
foreach (var movie_item in data_items.Value<JToken>("movies"))
{
foreach (var torrent_info in movie_item.Value<JArray>("torrents"))
var torrents = movie_item.Value<JArray>("torrents");
if (torrents == null)
continue;
foreach (var torrent_info in torrents)
{
var release = new ReleaseInfo();