mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
galeriens: add config multi option. #9544
This commit is contained in:
@@ -194,6 +194,25 @@ settings:
|
|||||||
type: checkbox
|
type: checkbox
|
||||||
label: Search freeleech only
|
label: Search freeleech only
|
||||||
default: false
|
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
|
||||||
- name: torrentlanguage
|
- name: torrentlanguage
|
||||||
type: select
|
type: select
|
||||||
label: Torrent Language
|
label: Torrent Language
|
||||||
@@ -270,8 +289,24 @@ search:
|
|||||||
filters:
|
filters:
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: (\d+)$
|
args: (\d+)$
|
||||||
title:
|
title_phase1:
|
||||||
selector: a[onmouseover]
|
selector: a[onmouseover]
|
||||||
|
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:
|
details:
|
||||||
selector: a[onmouseover]
|
selector: a[onmouseover]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user