mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
ilcorsaronero: Update definition (#2756)
Added a possibility to translate Stagione into S0X or Season
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
site: ilcorsaronero
|
site: ilcorsaronero
|
||||||
name: Il Corsaro Nero
|
name: Il Corsaro Nero
|
||||||
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"
|
||||||
@@ -41,9 +41,19 @@
|
|||||||
# {{else if and .Query.Keywords (not .advanced-search)}}argh.php?search={{ .Query.Keywords}}
|
# {{else if and .Query.Keywords (not .advanced-search)}}argh.php?search={{ .Query.Keywords}}
|
||||||
# {{else}}/recenti
|
# {{else}}/recenti
|
||||||
# {{end}}"
|
# {{end}}"
|
||||||
- path: "{{if .Query.Keywords}}argh.php?search={{ .Query.Keywords}}
|
- path: "{{if .Keywords}}argh.php?search={{ .Keywords}}
|
||||||
{{else}}/recenti
|
{{else}}/recenti
|
||||||
{{end}}"
|
{{end}}"
|
||||||
|
keywordsfilters:
|
||||||
|
- name: re_replace
|
||||||
|
args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it)
|
||||||
|
- name: diacritics
|
||||||
|
args: replace
|
||||||
|
# most ITA TV torrents are in XXxYY format, so we search without S/E prefixes and filter later
|
||||||
|
- name: re_replace
|
||||||
|
args: ["S0?(\\d{1,2})", " $1 "]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["E(\\d{2,3})", " $1 "]
|
||||||
rows:
|
rows:
|
||||||
selector: "tr.odd,tr.odd2"
|
selector: "tr.odd,tr.odd2"
|
||||||
fields:
|
fields:
|
||||||
@@ -58,11 +68,26 @@
|
|||||||
args: [ "_", " "]
|
args: [ "_", " "]
|
||||||
- name: replace
|
- name: replace
|
||||||
args: [ " ", " "]
|
args: [ " ", " "]
|
||||||
|
- name: replace
|
||||||
|
args: [ ".", " "]
|
||||||
# normalize to SXXEYY format
|
# normalize to SXXEYY format
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["(\\d{2})x(\\d{2})", "S$1E$2"]
|
args: ["(\\d{2})x(\\d{2})", "S$1E$2"]
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["(\\d{1})x(\\d{2})", "S0$1E$2"]
|
args: ["(\\d{1})x(\\d{2})", "S0$1E$2"]
|
||||||
|
- name: re_replace #Stagione X --> S0X
|
||||||
|
args: ["Stagione (\\d{0,1}\\s)", "S0$1"]
|
||||||
|
- name: re_replace #Stagione XX --> SXX
|
||||||
|
args: ["Stagione (\\d{2}\\s)", "S$1"]
|
||||||
|
- name: re_replace #/ Episodio [YY-YY --> EYY-YY
|
||||||
|
args: ["(\\s\\/\\sEpisodio|\\s\\/\\sEpisodi|\\sEpisodio|\\s\\|\\sEpisodio|\\sEpisodi)\\s\\[", "E"]
|
||||||
|
- name: re_replace #/ Completa [episodi YY-YY --> EYY-YY
|
||||||
|
args: ["(\\s\\/\\sCompleta\\s\\[episodi\\s)", "E"]
|
||||||
|
- name: re_replace #remove di YY] | remove /YY]
|
||||||
|
args: ["(\\sdi\\s\\d{1,2}|\\/\\d{1,2})\\]", " "]
|
||||||
|
- name: re_replace #remove various
|
||||||
|
args: ["(Serie completa|Completa|\\[in pausa\\])", ""]
|
||||||
|
# fine prova
|
||||||
category:
|
category:
|
||||||
selector: td:nth-child(1) a
|
selector: td:nth-child(1) a
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user