mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-01 07:55:22 +02:00
Fixed: (AnimeTorrents) Replace non-word chars with wildcard in search term
This commit is contained in:
@@ -210,8 +210,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
{
|
||||
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 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
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();
|
||||
|
||||
|
Reference in New Issue
Block a user