1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 14:14:25 +00:00

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

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)
{