CP list hotfix

This commit is contained in:
Devin Buhl 2017-03-09 19:40:55 -05:00
commit 7cf2a8cb62

View file

@ -45,6 +45,9 @@ namespace NzbDrone.Core.NetImport.CouchPotato
{ {
int tmdbid = item.info.tmdb_id ?? 0; 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 there are no releases at all the movie wasn't found on CP, so return movies
if (!item.releases.Any() && item.type == "movie") if (!item.releases.Any() && item.type == "movie")
{ {
@ -72,6 +75,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato
} }
} }
} }
}
return movies; return movies;
} }