sharewood: remove some special characters from search term

This commit is contained in:
Bogdan
2023-04-19 01:47:04 +03:00
parent a9ffbbce12
commit 12de45913a
2 changed files with 5 additions and 0 deletions

View File

@@ -132,6 +132,10 @@ search:
qty: 100
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
keywordsfilters:
- name: re_replace
args: ["[\\:\\-\\/\\|]+", " "]
rows:
selector: div.table-responsive-line

View File

@@ -201,6 +201,7 @@ namespace Jackett.Common.Indexers
}
var term = query.GetQueryString().Trim();
term = Regex.Replace(term, @"[\:\-\/\|]+", " ");
foreach (var categoryId in categoryMapping)
{