alpharatio: re-enable searching by season only. resolves #12693 (#12694)

This commit is contained in:
ilike2burnthing 2021-12-11 03:57:31 +00:00 committed by GitHub
parent 258f7fba1f
commit f00aedb542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -72,16 +72,8 @@ namespace Jackett.Common.Indexers
AddCategoryMapping(30, TorznabCatType.Other, "Misc");
}
protected override string GetSearchTerm(TorznabQuery query)
{
// Ignore season search without episode. Alpharatio doesn't support it.
var searchTerm = string.IsNullOrWhiteSpace(query.Episode)
? query.SanitizedSearchTerm
: query.GetQueryString();
// Alpharatio can't handle dots in the searchstr
return searchTerm.Replace(".", " ");
}
// Alpharatio can't handle dots in the searchstr
protected override string GetSearchTerm(TorznabQuery query) => query.GetQueryString().Replace(".", " ");
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
{