@ -39,6 +39,7 @@ namespace NzbDrone.Core.Test.MetadataSource.SkyHook
[TestCase("tmdbid: -12")]
[TestCase("tmdbid:1")]
[TestCase("adjalkwdjkalwdjklawjdlKAJD;EF")]
[TestCase("imdb: tt9805708")]
public void no_search_result(string term)
{
var result = Subject.SearchForNewMovie(term);
@ -332,9 +332,12 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
}
var resource = response.Resource.movie_results.FirstOrDefault();
if (!response.Resource.movie_results.Any())
throw new MovieNotFoundException(imdbId);
return MapMovie(resource);
return MapMovie(response.Resource.movie_results.First());
public List<Movie> DiscoverNewMovies(string action)