1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Manual importing almost done. Needs fixing for mapping movies.

This commit is contained in:
Leonardo Galli
2017-01-26 14:21:35 +01:00
parent e2c2bdb65b
commit 44b4e71c05
6 changed files with 62 additions and 9 deletions
@@ -56,6 +56,8 @@ namespace NzbDrone.Core.NetImport.CouchPotato
foreach (var item in responseData)
{
int tmdbid = item.info.tmdb_id ?? 0;
// if there are no releases at all the movie wasn't found on CP, so return movies
if (!item.releases.Any() && item.type == "movie")
{
@@ -63,7 +65,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato
{
Title = item.title,
ImdbId = item.info.imdb,
TmdbId = item.info.tmdb_id
TmdbId = tmdbid
});
}
else
@@ -77,7 +79,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato
{
Title = item.title,
ImdbId = item.info.imdb,
TmdbId = item.info.tmdb_id,
TmdbId = tmdbid,
Monitored = false
});
}