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

View File

@@ -72,16 +72,8 @@ namespace Jackett.Common.Indexers
AddCategoryMapping(30, TorznabCatType.Other, "Misc"); AddCategoryMapping(30, TorznabCatType.Other, "Misc");
} }
protected override string GetSearchTerm(TorznabQuery query) // Alpharatio can't handle dots in the searchstr
{ protected override string GetSearchTerm(TorznabQuery query) => query.GetQueryString().Replace(".", " ");
// 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(".", " ");
}
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query) protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
{ {