dxdhd: handle login errors and poster on/off

This commit is contained in:
Garfield69 2019-05-24 22:06:04 +12:00
parent a3f7575e8e
commit bb595337bd
1 changed files with 7 additions and 5 deletions

View File

@ -34,7 +34,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"]
@ -86,13 +88,13 @@
- name: replace - name: replace
args: ["https://via.placeholder.com/600x900", ""] 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\.]+)