From 420e5fd730dbc9df339390674ce256e739b143cc Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 28 Dec 2019 20:26:56 -0500 Subject: [PATCH] New: Fallback to tmdb search on Rarbg if IMDb is null --- src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs index 4296b3684..1ba6b7ce5 100644 --- a/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs @@ -84,10 +84,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}");