mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
CP list hotfix
This commit is contained in:
parent
1a4fb6e7bb
commit
7cf2a8cb62
1 changed files with 21 additions and 17 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue