mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 18:59:01 +00:00
cinemamovies: add replace-multi resolves #12040
This commit is contained in:
parent
f3da4b097f
commit
d9cc5e733f
1 changed files with 22 additions and 2 deletions
|
@ -53,6 +53,17 @@ settings:
|
|||
type: checkbox
|
||||
label: Drop the Polish title prefix
|
||||
default: false
|
||||
- name: multilang
|
||||
type: checkbox
|
||||
label: Replace MULTI & PL by another language in release name
|
||||
default: false
|
||||
- name: multilanguage
|
||||
type: select
|
||||
label: Replace MULTI & PL by this language
|
||||
default: POLISH
|
||||
options:
|
||||
POLISH: POLISH
|
||||
MULTI.POLISH: MULTI.POLISH
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
|
@ -105,13 +116,22 @@ search:
|
|||
args: cat
|
||||
title_raw:
|
||||
selector: a[href^="details.php?id="]
|
||||
title_multilang:
|
||||
text: "{{ .Result.title_raw }}"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)(\\[multi\\])", " {{ .Config.multilanguage }} "]
|
||||
- name: re_replace
|
||||
args: ["(?i)(\\[pl\\])", " {{ .Config.multilanguage }} "]
|
||||
title_phase1:
|
||||
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_raw }}{{ end }}"
|
||||
title_stripped:
|
||||
selector: a[href^="details.php?id="]
|
||||
text: "{{ .Result.title_phase1 }}"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["^(.* / )(.*)$", "$2"]
|
||||
title:
|
||||
text: "{{ if .Config.drop_polish_prefix }}{{ .Result.title_stripped }}{{ else }}{{ .Result.title_raw }}{{ end }}"
|
||||
text: "{{ if .Config.drop_polish_prefix }}{{ .Result.title_stripped }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
|
||||
details:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: href
|
||||
|
|
Loading…
Add table
Reference in a new issue