New: Fallback to tmdb search on Rarbg if IMDb is null

pull/4017/head
Qstick 5 years ago
parent 2eff7b95dd
commit 60b9496162

@ -87,10 +87,14 @@ namespace NzbDrone.Core.Indexers.Rarbg
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…
Cancel
Save