From 8fc18d40209a2cc982c9fbc35f3b08d772faa596 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 18 Sep 2020 18:19:26 +1200 Subject: [PATCH] fouducinema: add config multi option. #9544 add minimumratio --- .../Definitions/fouducinema.yml | 39 ++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/fouducinema.yml b/src/Jackett.Common/Definitions/fouducinema.yml index 4479e41a5..799624fd4 100644 --- a/src/Jackett.Common/Definitions/fouducinema.yml +++ b/src/Jackett.Common/Definitions/fouducinema.yml @@ -73,6 +73,25 @@ settings: type: checkbox label: Search freeleech only default: false + - name: multilang + type: checkbox + label: Replace MULTI by another language in release name + default: false + - name: multilanguage + type: select + label: Replace MULTI by this language + default: FRENCH + options: + FRENCH: "FRENCH" + MULTI.FRENCH: "MULTI.FRENCH" + ENGLISH: "ENGLISH" + MULTI.ENGLISH: "MULTI.ENGLISH" + VOSTFR: "VOSTFR" + MULTI.VOSTFR: "MULTI.VOSTFR" + - name: vostfr + type: checkbox + label: Replace VOSTFR with ENGLISH + default: false login: path: TTV3/Connexion @@ -122,7 +141,7 @@ search: filters: - name: regexp args: (\d+)$ - title: + title_phase1: selector: a[href*="/SousCategories/"] attribute: alt filters: @@ -130,6 +149,22 @@ search: args: "^..(.+)" - name: re_replace args: ["\\.", " "] + title_multilang: + text: "{{ .Result.title_phase1 }}" + filters: + - name: re_replace + args: ["(?i)(\\smulti\\s)", " {{ .Config.multilanguage }} "] + title_phase2: + text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase1 }}{{ end }}" + title_vostfr: + text: "{{ .Result.title_phase2 }}" + filters: + - name: re_replace + args: ["(?i)(\\svostfr\\s)", " ENGLISH "] + - name: re_replace + args: ["(?i)(\\ssubfrench\\s)", " ENGLISH "] + title: + text: "{{ if .Config.vostfr }}{{ .Result.title_vostfr }}{{ else }}{{ .Result.title_phase2 }}{{ end }}" details: selector: a[onmouseover] attribute: href @@ -174,4 +209,6 @@ search: "*": 1 uploadvolumefactor: text: 1 + minimumratio: + text: 0.95 # TT3.00 FRENCH