From 4a55f4dd4afabd29090f7a9350b4a09ebd23527f Mon Sep 17 00:00:00 2001 From: Jorman Date: Fri, 16 Aug 2019 23:53:35 +0200 Subject: [PATCH] ilcorsaronero: Improved the char substitution for the title (#5862) Improved the char substitution for the title Now only the special char are removed --- .../Definitions/ilcorsaronero.yml | 26 ++++++------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/Jackett.Common/Definitions/ilcorsaronero.yml b/src/Jackett.Common/Definitions/ilcorsaronero.yml index db34754a7..346a757c6 100644 --- a/src/Jackett.Common/Definitions/ilcorsaronero.yml +++ b/src/Jackett.Common/Definitions/ilcorsaronero.yml @@ -4,7 +4,7 @@ description: "Il Corsaro Nero is an ITALIAN Public site for TV / MOVIES / GENERAL" language: it-it type: public - encoding: UTF-8 + encoding: Windows-1252 links: - https://ilcorsaronero.pizza/ legacylinks: @@ -34,23 +34,9 @@ - name: itorrents-links type: checkbox label: Add download links via itorrents.org - # - name: advanced-search - # type: checkbox - # label: Use the advanced search of IlCorsaroNero (experimental) search: paths: - # https://ilcorsaronero.info/advsearch.php?&category=15&search=flash+4&&order=data&by=DESC&page=3 - # {{range .Categories}}{{.}};{{end}} - - ##### Are the "not" and "and" functions implemented? Or am I doing it wrong? - # path: "{{if and .Query.Keywords .advanced-search}}adv/{{ .Query.Keywords}}.html - # {{else if and .Query.Keywords (not .advanced-search)}}argh.php?search={{ .Query.Keywords}} - # {{else}}/recenti - # {{end}}" - # - path: "{{if .Keywords}}argh.php?search={{ .Keywords}} - # {{else}}/recenti - # {{end}}" - path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=0{{else}}/browse/0{{end}}" - path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=1{{else}}/browse/1{{end}}" - path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=2{{else}}/browse/2{{end}}" @@ -58,8 +44,8 @@ - path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=4{{else}}/browse/4{{end}}" - path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=5{{else}}/browse/5{{end}}" keywordsfilters: - - name: diacritics - args: replace + # - name: diacritics + # args: replace - name: re_replace # S01 to 1 args: ["(?i)\\bS0*(\\d+)\\b", "$1"] - name: re_replace # S01E01 to 1 1 @@ -75,9 +61,13 @@ filters: - name: split args: [ "/", -1 ] + - name: diacritics + args: replace - name: urldecode + # - name: re_replace # replace special characters with " " (space) + # args: ["[^a-zA-Z0-9\\s]|\\.", " "] - name: re_replace # replace special characters with " " (space) - args: ["[^a-zA-Z0-9\\s]|\\.", " "] + args: ["[\\[!\"#$%&'()*+,\\-.\\/:;<=>?@[\\]^_`{|}~]", " "] - name: re_replace # replace multiple spaces args: ["[ ]{2,}", " "] # normalize to SXXEYY format