mirror of https://github.com/Jackett/Jackett
YTS: handle movies without torrents
This commit is contained in:
parent
7c1fbdd44b
commit
2fb3d52b44
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue