mirror of https://github.com/Jackett/Jackett
untested
This commit is contained in:
parent
37eed9b38a
commit
e177081ab7
|
@ -44,6 +44,37 @@ caps:
|
|||
tv-search: [q, season, ep]
|
||||
movie-search: [q]
|
||||
|
||||
settings:
|
||||
- name: username
|
||||
type: text
|
||||
label: Username
|
||||
- name: password
|
||||
type: password
|
||||
label: Password
|
||||
- name: freeleech
|
||||
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: login
|
||||
method: form
|
||||
|
@ -51,7 +82,7 @@ login:
|
|||
inputs:
|
||||
_username: "{{ .Config.username }}"
|
||||
_password: "{{ .Config.password }}"
|
||||
_remember_me: "on"
|
||||
_remember_me: on
|
||||
error:
|
||||
- selector: :contains("\"success\":false")
|
||||
test:
|
||||
|
@ -65,15 +96,15 @@ search:
|
|||
args: ["^$", "null"]
|
||||
inputs:
|
||||
$raw: "{{range .Categories}}subcat[]={{.}}&{{end}}"
|
||||
exclu: "0"
|
||||
freeleech: "0"
|
||||
reseed: "0"
|
||||
exclu: 0
|
||||
freeleech: "{{ if .Config.freeleech }}1{{ else }}0{{ end }}"
|
||||
reseed: 0
|
||||
rows:
|
||||
selector: div.torrent-item
|
||||
filters:
|
||||
- name: andmatch
|
||||
fields:
|
||||
title:
|
||||
title_phase1:
|
||||
selector: a.torrentlink
|
||||
attribute: title
|
||||
filters:
|
||||
|
@ -81,8 +112,22 @@ search:
|
|||
args: ["(?i)(SEASON|SAISON) (\\d\\d)", "S$2"]
|
||||
- name: re_replace
|
||||
args: ["(?i)(SEASON|SAISON) (\\d)", "S0$2"]
|
||||
title_multilang:
|
||||
text: "{{ .Result.title_phase1 }}"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i) (MULTI) ", " $1 FRENCH "]
|
||||
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 }}"
|
||||
banner:
|
||||
selector: a.torrentlink > img.img-responsive
|
||||
attribute: src
|
||||
|
@ -176,10 +221,8 @@ search:
|
|||
selector: div.completed
|
||||
downloadvolumefactor:
|
||||
case:
|
||||
div.fl-label: "0"
|
||||
"*": "1"
|
||||
div.fl-label: 0
|
||||
"*": 1
|
||||
uploadvolumefactor:
|
||||
case:
|
||||
"*": "1"
|
||||
date:
|
||||
text: "now"
|
||||
text: 1
|
||||
# engine tbd
|
||||
|
|
Loading…
Reference in New Issue