diff --git a/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleRequestGenerator.cs index 67ad1987d..641309a6f 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleRequestGenerator.cs @@ -30,7 +30,7 @@ namespace NzbDrone.Core.Indexers.Gazelle return pageableRequests; } - private IEnumerable GetRequest(string searchParameters) + protected IEnumerable GetRequest(string searchParameters) { var filter = ""; if (searchParameters == null) @@ -45,7 +45,7 @@ namespace NzbDrone.Core.Indexers.Gazelle yield return request; } - private string GetBasicSearchParameters(string searchTerm, int[] categories) + protected string GetBasicSearchParameters(string searchTerm, int[] categories) { var searchString = GetSearchTerm(searchTerm); diff --git a/src/NzbDrone.Core/Indexers/Definitions/GreatPosterWall.cs b/src/NzbDrone.Core/Indexers/Definitions/GreatPosterWall.cs index bdee19c3f..d0a4d7a2d 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/GreatPosterWall.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/GreatPosterWall.cs @@ -8,6 +8,7 @@ using NzbDrone.Common.Http; using NzbDrone.Core.Configuration; using NzbDrone.Core.Indexers.Exceptions; using NzbDrone.Core.Indexers.Gazelle; +using NzbDrone.Core.IndexerSearch.Definitions; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.Parser; using NzbDrone.Core.Parser.Model; @@ -61,6 +62,20 @@ public class GreatPosterWall : Gazelle.Gazelle public class GreatPosterWallRequestGenerator : GazelleRequestGenerator { protected override bool ImdbInTags => false; + + public new IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria) + { + var parameters = GetBasicSearchParameters(searchCriteria.SearchTerm, searchCriteria.Categories); + + if (searchCriteria.ImdbId != null) + { + parameters += string.Format("&searchstr={0}", searchCriteria.FullImdbId); + } + + var pageableRequests = new IndexerPageableRequestChain(); + pageableRequests.Add(GetRequest(parameters)); + return pageableRequests; + } } public class GreatPosterWallParser : GazelleParser