CP list hotfix

Devin Buhl 8 years ago
parent 1a4fb6e7bb
commit 7cf2a8cb62

@ -45,6 +45,9 @@ namespace NzbDrone.Core.NetImport.CouchPotato
{
int tmdbid = item.info.tmdb_id ?? 0;
// Fix weird error reported by Madmanali93
if (item.type != null && item.releases != null)
{
// if there are no releases at all the movie wasn't found on CP, so return movies
if (!item.releases.Any() && item.type == "movie")
{
@ -72,6 +75,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato
}
}
}
}
return movies;
}

Loading…
Cancel
Save