1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 12:46:23 +00:00

CardigannIndexer: Fix andmatch filter to respect keywordsfilters resolves #7988 (#8007)

This commit is contained in:
krt- 2020-04-11 15:02:00 -04:00 committed by GitHub
parent c528fc0f98
commit f355db6788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -1603,7 +1603,9 @@ namespace Jackett.Common.Indexers
if (query.ImdbID != null && TorznabCaps.SupportsImdbMovieSearch)
break; // skip andmatch filter for imdb searches
if (!query.MatchQueryStringAND(release.Title, CharacterLimit))
var queryKeywords = variables[".Keywords"] as string;
if (!query.MatchQueryStringAND(release.Title, CharacterLimit, queryKeywords))
{
logger.Debug(string.Format("CardigannIndexer ({0}): skipping {1} (andmatch filter)", ID, release.Title));
SkipRelease = true;

View file

@ -148,9 +148,8 @@ namespace Jackett.Common.Models
// We cache the regex split results so we have to do it only once for each query.
if (QueryStringParts == null)
{
var queryString = GetQueryString();
if (queryStringOverride != null)
queryString = queryStringOverride;
var queryString = !string.IsNullOrWhiteSpace(queryStringOverride) ? queryStringOverride : GetQueryString();
if (limit != null && limit > 0)
{
if (limit > queryString.Length)