From a5d4056e50c0f8d0db6474b5aba9d1bb8a93e490 Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Sat, 9 May 2020 14:13:47 +0200 Subject: [PATCH] redacted: andmatch. resolves #8413 (#8568) --- src/Jackett.Common/Indexers/Redacted.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Jackett.Common/Indexers/Redacted.cs b/src/Jackett.Common/Indexers/Redacted.cs index 9d6d928be..64a56fe66 100644 --- a/src/Jackett.Common/Indexers/Redacted.cs +++ b/src/Jackett.Common/Indexers/Redacted.cs @@ -1,5 +1,7 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Threading.Tasks; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -37,5 +39,13 @@ namespace Jackett.Common.Indexers AddCategoryMapping(6, TorznabCatType.TV, "Comedy"); AddCategoryMapping(7, TorznabCatType.Books, "Comics"); } + + protected override async Task> PerformQuery(TorznabQuery query) + { + var results = await base.PerformQuery(query); + // results must contain search terms + results = results.Where(release => query.MatchQueryStringAND(release.Title)); + return results; + } } }