mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -152,6 +152,8 @@ search:
|
|||||||
keywordsfilters:
|
keywordsfilters:
|
||||||
# - name: diacritics # 8686
|
# - name: diacritics # 8686
|
||||||
# args: replace
|
# args: replace
|
||||||
|
- name: re_replace
|
||||||
|
args: ["[^a-zA-Zа-яА-Я0-9]+", " "]
|
||||||
- name: re_replace # S01 to 1
|
- name: re_replace # S01 to 1
|
||||||
args: ["(?i)\\bS0*(\\d+)\\b", "$1"]
|
args: ["(?i)\\bS0*(\\d+)\\b", "$1"]
|
||||||
- name: re_replace # S01E01 to 1 1
|
- name: re_replace # S01E01 to 1 1
|
||||||
|
@@ -1481,7 +1481,10 @@ namespace Jackett.Common.Indexers
|
|||||||
{
|
{
|
||||||
var queryCollection = new NameValueCollection();
|
var queryCollection = new NameValueCollection();
|
||||||
|
|
||||||
var searchString = query.SanitizedSearchTerm;
|
var searchString = query.GetQueryString();
|
||||||
|
// replace any space, special char, etc. with % (wildcard)
|
||||||
|
var ReplaceRegex = new Regex("[^a-zA-Zа-яА-Я0-9]+");
|
||||||
|
searchString = ReplaceRegex.Replace(searchString, "%");
|
||||||
|
|
||||||
// if the search string is empty use the getnew view
|
// if the search string is empty use the getnew view
|
||||||
if (string.IsNullOrWhiteSpace(searchString))
|
if (string.IsNullOrWhiteSpace(searchString))
|
||||||
|
Reference in New Issue
Block a user