mirror of
https://github.com/Radarr/Radarr
synced 2025-01-01 12:54:21 +00:00
New: Fallback to tmdb search on Rarbg if IMDb is null
This commit is contained in:
parent
2eff7b95dd
commit
60b9496162
1 changed files with 5 additions and 1 deletions
|
@ -87,10 +87,14 @@ private IEnumerable<IndexerRequest> GetMovieRequest(MovieSearchCriteria searchCr
|
|||
|
||||
requestBuilder.AddQueryParam("mode", "search");
|
||||
|
||||
if (searchCriteria.Movie.ImdbId != null)
|
||||
if (searchCriteria.Movie.ImdbId.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
requestBuilder.AddQueryParam("search_imdb", searchCriteria.Movie.ImdbId);
|
||||
}
|
||||
else if (searchCriteria.Movie.TmdbId > 0)
|
||||
{
|
||||
requestBuilder.AddQueryParam("search_themoviedb", searchCriteria.Movie.TmdbId);
|
||||
}
|
||||
else
|
||||
{
|
||||
requestBuilder.AddQueryParam("search_string", $"{searchCriteria.Movie.Title} {searchCriteria.Movie.Year}");
|
||||
|
|
Loading…
Reference in a new issue