|
|
@ -523,7 +523,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
|
|
|
|
|
|
|
|
|
|
|
|
var movieResults = response.Resource.results;
|
|
|
|
var movieResults = response.Resource.results;
|
|
|
|
|
|
|
|
|
|
|
|
return movieResults.SelectList(MapMovie);
|
|
|
|
return movieResults.SelectList(MapSearchResult);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (HttpException)
|
|
|
|
catch (HttpException)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -536,6 +536,18 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Movie MapSearchResult(MovieResult result)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var movie = _movieService.FindByTmdbId(result.id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (movie == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
movie = MapMovie(result);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return movie;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Movie MapMovie(MovieResult result)
|
|
|
|
public Movie MapMovie(MovieResult result)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var imdbMovie = new Movie();
|
|
|
|
var imdbMovie = new Movie();
|
|
|
|