diff --git a/src/Jackett.Common/Definitions/ilcorsaronero.yml b/src/Jackett.Common/Definitions/ilcorsaronero.yml index 1d8646f30..de515472e 100644 --- a/src/Jackett.Common/Definitions/ilcorsaronero.yml +++ b/src/Jackett.Common/Definitions/ilcorsaronero.yml @@ -37,6 +37,9 @@ search: paths: + # FIX DA FARE: + # 1. SE CERCO PER CATEGORIA ALLORA DEVO CAMBIARE IL PERCORSO DI RICERCA + # 2. CONTROLLARE SE LE RELEASE VANNO FILTRATE COME PER GIROTORRENT ##### 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}} @@ -46,15 +49,12 @@ {{else}}/recenti {{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 "] + - name: re_replace # S01 to 1 + args: ["\\b[sS]0*(\\d+)\\b", "$1"] + - name: re_replace # S01E01 to 1 1 + args: ["\\b[sS]0*(\\d+)[eE]0*(\\d+)\\b", "$1 $2"] rows: selector: "tr.odd,tr.odd2" fields: @@ -65,32 +65,28 @@ - name: split args: [ "/", -1 ] - name: urldecode - - name: re_replace - args: [ "_+", " "] - - name: replace - args: [ ".", " "] - - name: re_replace - args: [ "\\s{2,}", " "] + - name: re_replace # replace special characters with " " (space) + args: ["[^a-zA-Z0-9\\s]|\\.", " "] + - name: re_replace # replace multiple spaces + args: ["[ ]{2,}", " "] # normalize to SXXEYY format - - name: re_replace - args: ["(\\d{2})x(\\d{2})", "S$1E$2"] - - name: re_replace - 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 - - name: re_replace #try to find multi episode - args: ["(S\\d{2}E\\d{2})\\s(\\d{2})", "$1-$2"] + - name: re_replace # S01 E01 to S01E01 + args: ["\\b[sS](\\d+)\\s[eE](\\d+)\\b", "S$1E$2"] + - name: re_replace # 01x01 to S01E01 + args: ["(\\d{2})x(\\d+)", "S$1E$2"] + - name: re_replace # 1x01 to S01E01 + args: ["\\b(\\d{1})x(\\d+)", "S0$1E$2"] + - name: re_replace # Stagione X --> S0X + args: ["\\b[sS]tagion[eiEI]\\s?(\\d{1})\\b|\\b[sS]eason\\s?(\\d{1})\\b", "S0$1"] + - name: re_replace # Stagione XX --> SXX + args: ["\\b[sS]tagion[eiEI]\\s?(\\d{2,})\\b|\\b[sS]easons?\\s?(\\d{2,})\\b", "S$1"] + - name: re_replace # Episodio 4 to E4 + args: ["\\b([\\/\\|]?[eE]pisodio\\s?(\\d+)|[Pp]untata\\s?(\\d+))", "E$2$3"] + - name: re_replace # Episodi 4 5 to E04-05 + args: ["\\b(?:[Pp]untat[eE]\\s*)(\\d+)\\s?(\\d+)", "E0$1-0$2"] + - name: re_replace # rimozioni varie + args: ["([Ss]erie completa|[cC]ompleta[tT]?[aA]?|COMPLETA[TA]?|in pausa)", ""] + - name: andmatch category: selector: td:nth-child(1) a attribute: href