Revert "New: if search results empty, use GetMovieByImdbId"

This reverts commit c539f9f703.
pull/9810/head
edwinbernadus 4 months ago
parent c539f9f703
commit 123d90ccc1
No known key found for this signature in database
GPG Key ID: C0CCA01F96613255

@ -511,27 +511,8 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
request.SuppressHttpError = true;
var httpResponse = _httpClient.Get<List<MovieResource>>(request);
var output = httpResponse.Resource.SelectList(MapSearchResult);
// if output is zero and format is ttXXXXXXXX, use GetMovieByImdbId
if (output.Count == 0 && title.Length == 10 && title.StartsWith("tt"))
{
var imdbid = title;
try
{
var movieLookup = GetMovieByImdbId(imdbid);
return new List<Movie>
{
new Movie { MovieMetadata = movieLookup }
};
}
catch (MovieNotFoundException)
{
return new List<Movie>();
}
}
return output;
return httpResponse.Resource.SelectList(MapSearchResult);
}
catch (HttpException ex)
{

Loading…
Cancel
Save