mirror of
https://github.com/Jackett/Jackett
synced 2024-12-28 19:04:09 +00:00
parent
d41aa3144b
commit
a5d4056e50
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue