ilcorsaronero: Improved the char substitution for the title (#5862)

Improved the char substitution for the title
Now only the special char are removed
This commit is contained in:
Jorman 2019-08-16 23:53:35 +02:00 committed by garfield69
parent 583a13fa85
commit 4a55f4dd4a
1 changed files with 8 additions and 18 deletions

View File

@ -4,7 +4,7 @@
description: "Il Corsaro Nero is an ITALIAN Public site for TV / MOVIES / GENERAL" description: "Il Corsaro Nero is an ITALIAN Public site for TV / MOVIES / GENERAL"
language: it-it language: it-it
type: public type: public
encoding: UTF-8 encoding: Windows-1252
links: links:
- https://ilcorsaronero.pizza/ - https://ilcorsaronero.pizza/
legacylinks: legacylinks:
@ -34,23 +34,9 @@
- name: itorrents-links - name: itorrents-links
type: checkbox type: checkbox
label: Add download links via itorrents.org label: Add download links via itorrents.org
# - name: advanced-search
# type: checkbox
# label: Use the advanced search of IlCorsaroNero (experimental)
search: search:
paths: 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=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=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}}" - 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=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}}" - path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=5{{else}}/browse/5{{end}}"
keywordsfilters: keywordsfilters:
- name: diacritics # - name: diacritics
args: replace # args: replace
- 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
@ -75,9 +61,13 @@
filters: filters:
- name: split - name: split
args: [ "/", -1 ] args: [ "/", -1 ]
- name: diacritics
args: replace
- name: urldecode - name: urldecode
# - name: re_replace # replace special characters with " " (space)
# args: ["[^a-zA-Z0-9\\s]|\\.", " "]
- name: re_replace # replace special characters with " " (space) - name: re_replace # replace special characters with " " (space)
args: ["[^a-zA-Z0-9\\s]|\\.", " "] args: ["[\\[!\"#$%&'()*+,\\-.\\/:;<=>?@[\\]^_`{|}~]", " "]
- name: re_replace # replace multiple spaces - name: re_replace # replace multiple spaces
args: ["[ ]{2,}", " "] args: ["[ ]{2,}", " "]
# normalize to SXXEYY format # normalize to SXXEYY format