mirror of https://github.com/Jackett/Jackett
r4e: handle login errors and posters on/off
This commit is contained in:
parent
2c423b3b88
commit
a3f7575e8e
|
@ -41,6 +41,7 @@
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
|
tv-search: [q, season, ep, imdbid]
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: login
|
path: login
|
||||||
|
@ -50,7 +51,9 @@
|
||||||
password: "{{ .Config.password }}"
|
password: "{{ .Config.password }}"
|
||||||
remember: 1
|
remember: 1
|
||||||
error:
|
error:
|
||||||
- selector: div.has-error
|
- selector: script[nonce]:contains("Error")
|
||||||
|
message:
|
||||||
|
selector: script[nonce]:contains("Error")
|
||||||
test:
|
test:
|
||||||
path: torrents
|
path: torrents
|
||||||
selector: a[href$="/logout"]
|
selector: a[href$="/logout"]
|
||||||
|
@ -67,10 +70,10 @@
|
||||||
- path: filterTorrents
|
- path: filterTorrents
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{range .Categories}}categories[]={{.}}&{{end}}"
|
$raw: "{{range .Categories}}categories[]={{.}}&{{end}}"
|
||||||
search: "{{ .Keywords }}"
|
search: "{{if .Query.IMDBID}}{{else}}{{ .Keywords }}{{end}}"
|
||||||
description: ""
|
description: ""
|
||||||
uploader: ""
|
uploader: ""
|
||||||
imdb: ""
|
imdb: "{{ .Query.IMDBIDShort }}"
|
||||||
tvdb: ""
|
tvdb: ""
|
||||||
tmdb: ""
|
tmdb: ""
|
||||||
sort: created_at
|
sort: created_at
|
||||||
|
@ -93,14 +96,21 @@
|
||||||
details:
|
details:
|
||||||
selector: a.view-torrent
|
selector: a.view-torrent
|
||||||
attribute: href
|
attribute: href
|
||||||
|
banner:
|
||||||
|
optional: true
|
||||||
|
selector: div.torrent-poster img
|
||||||
|
attribute: src
|
||||||
|
filters:
|
||||||
|
- name: replace
|
||||||
|
args: ["https://via.placeholder.com/600x900", ""]
|
||||||
size:
|
size:
|
||||||
selector: td:nth-child(5)
|
selector: td:nth-last-child(4)
|
||||||
seeders:
|
seeders:
|
||||||
selector: td:nth-child(6)
|
selector: td:nth-last-child(3)
|
||||||
leechers:
|
leechers:
|
||||||
selector: td:nth-child(7)
|
selector: td:nth-last-child(2)
|
||||||
grabs:
|
grabs:
|
||||||
selector: td:nth-child(8)
|
selector: td:nth-last-child(1)
|
||||||
filters:
|
filters:
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: ([\d\.]+)
|
args: ([\d\.]+)
|
||||||
|
|
Loading…
Reference in New Issue