1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-28 19:04:09 +00:00

redacted: andmatch. resolves #8413 (#8568)

This commit is contained in:
Diego Heras 2020-05-09 14:13:47 +02:00 committed by GitHub
parent d41aa3144b
commit a5d4056e50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
{
var results = await base.PerformQuery(query);
// results must contain search terms
results = results.Where(release => query.MatchQueryStringAND(release.Title));
return results;
}
}
}