mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 06:03:09 +00:00
crazyspirits: add config multi option. #9544
handle abbreviated titles by using youtube link if available
This commit is contained in:
parent
8432b6bf4b
commit
232330bc7a
1 changed files with 47 additions and 1 deletions
|
@ -117,6 +117,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
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
|
@ -174,8 +193,35 @@ search:
|
|||
selector: table.border_table > tbody > tr.t-row
|
||||
|
||||
fields:
|
||||
title:
|
||||
title_phase0:
|
||||
# title can be abbreviated
|
||||
selector: a[href^="torrents-details.php?id="] b
|
||||
title_phase1:
|
||||
# if available, the youtube link has a full title
|
||||
selector: a[rel="prettyPhoto"] img
|
||||
attribute: alt
|
||||
optional: true
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["-NoTag", ""]
|
||||
title_phase2:
|
||||
text: "{{ if .Result.title_phase1 }}{{ .Result.title_phase1 }}{{ else }}{{ .Result.title_phase0 }}{{ end }}"
|
||||
title_multilang:
|
||||
text: "{{ .Result.title_phase2 }}"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)(\\smulti\\s)", " {{ .Config.multilanguage }} "]
|
||||
title_phase3:
|
||||
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
|
||||
title_vostfr:
|
||||
text: "{{ .Result.title_phase3 }}"
|
||||
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_phase3 }}{{ end }}"
|
||||
category:
|
||||
selector: a[href^="torrents.php?cat="]
|
||||
attribute: href
|
||||
|
|
Loading…
Add table
Reference in a new issue