Fix AniDub search (#10972)

Co-authored-by: Diego Heras <ngosang@hotmail.es>
Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
Dmitry Chepurovskiy 2021-01-31 15:24:09 +03:00 committed by GitHub
parent 41584628e2
commit 2edaef04fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -536,7 +536,7 @@ namespace Jackett.Common.Indexers
.FirstOrDefault();
}
private async Task<List<ReleaseInfo>> PerformSearch(TorznabQuery query)
private async Task<IEnumerable<ReleaseInfo>> PerformSearch(TorznabQuery query)
{
const string searchLinkSelector = "#dle-content > .searchitem > h3 > a";
@ -558,8 +558,7 @@ namespace Jackett.Common.Indexers
{
OnParseError(response.ContentString, ex);
}
return releases;
return releases.Where(release => query.MatchQueryStringAND(release.Title));
}
private List<KeyValuePair<string, string>> PreparePostData(TorznabQuery query)
@ -572,7 +571,7 @@ namespace Jackett.Common.Indexers
{ "full_search", "1" },
{ "result_from", "1" },
{ "story", NormalizeSearchQuery(query)},
{ "titleonly", "3" },
{ "titleonly", "0" },
{ "searchuser", "" },
{ "replyless", "0" },
{ "replylimit", "0" },