mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-18 10:50:50 +02:00
Fixed: (AnimeTorrents) Replace non-word chars with wildcard in search term
This commit is contained in:
parent
c02bfb5930
commit
7a0dd0bc0d
1 changed files with 3 additions and 3 deletions
|
|
@ -210,8 +210,8 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, string categor
|
|||
{
|
||||
var searchUrl = _settings.BaseUrl + "ajax/torrents_data.php";
|
||||
|
||||
// replace non-alphanumeric characters with % (wildcard)
|
||||
var searchString = Regex.Replace(term.Trim(), "[^a-zA-Z0-9]+", "%");
|
||||
// replace non-word characters with % (wildcard)
|
||||
var searchString = Regex.Replace(term.Trim(), @"[\W]+", "%");
|
||||
|
||||
var page = searchCriteria.Limit is > 0 && searchCriteria.Offset is > 0 ? (int)(searchCriteria.Offset / searchCriteria.Limit) + 1 : 1;
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, string categor
|
|||
yield return new IndexerRequest(requestBuilder.Build());
|
||||
}
|
||||
|
||||
private IEnumerable<string> GetTrackerCategories(string term, SearchCriteriaBase searchCriteria)
|
||||
private List<string> GetTrackerCategories(string term, SearchCriteriaBase searchCriteria)
|
||||
{
|
||||
var searchTerm = term.Trim();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue