Fixed: (GreatPosterWall) move imdb id search to searchstr query param

pull/1145/head
Yukine 2 years ago committed by Qstick
parent e7b1380b85
commit be430732f5

@ -30,7 +30,7 @@ namespace NzbDrone.Core.Indexers.Gazelle
return pageableRequests;
}
private IEnumerable<IndexerRequest> GetRequest(string searchParameters)
protected IEnumerable<IndexerRequest> 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);

@ -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

Loading…
Cancel
Save