YTS: handle movies without torrents

This commit is contained in:
kaso17 2018-01-30 14:37:39 +01:00
parent 7c1fbdd44b
commit 2fb3d52b44
1 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,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();