1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-01-01 04:45:35 +00:00

Fixed an error when searching for movies with no imdbid.

This commit is contained in:
Leonardo Galli 2017-03-28 09:34:49 +02:00 committed by GitHub
parent 43a71da0a7
commit 6deefbb997

View file

@ -52,7 +52,7 @@ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchC
{ {
var pageableRequests = new IndexerPageableRequestChain(); var pageableRequests = new IndexerPageableRequestChain();
if (SupportsMovieSearch) if (SupportsMovieSearch && searchCriteria.Movie.ImdbId.IsNotNullOrWhitespace())
{ {
pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "movie", $"&imdbid={searchCriteria.Movie.ImdbId.Substring(2)}")); pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "movie", $"&imdbid={searchCriteria.Movie.ImdbId.Substring(2)}"));
} }