bitsexy: update for new layout

include missing sort inputs
change logout detection
replace td with div on rows
This commit is contained in:
Garfield69
2021-10-07 07:09:37 +13:00
parent 29aff7a980
commit 39c6f8ca16

View File

@@ -106,7 +106,7 @@ login:
- selector: table.main:contains("failed") - selector: table.main:contains("failed")
test: test:
path: my.php path: my.php
selector: a[href="logout.php"] selector: a[href$="logout.php"]
search: search:
paths: paths:
@@ -116,9 +116,11 @@ search:
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# 0 active, 1 incldead, 2 onlydead, 3 freeleech, 4 480p, 5 720p, 6 1080p, 7 4k # 0 active, 1 incldead, 2 onlydead, 3 freeleech, 4 480p, 5 720p, 6 1080p, 7 4k
incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}" incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows: rows:
selector: table[cellpadding="5"] tbody tr:has(a[href^="download.php?torrent="]) selector: div.torrentrow:has(a[href^="download.php?torrent="])
fields: fields:
category: category:
@@ -142,10 +144,10 @@ search:
- name: regexp - name: regexp
args: "src=(.*?) width" args: "src=(.*?) width"
files: files:
selector: td:nth-last-child(7) selector: div.torrenttable:nth-last-child(7)
date: date:
# Jul 4 2019 08:04 AM # Jul 4 2019 08:04 AM
selector: td:nth-last-child(5):not(:contains("day")) selector: div.torrenttable:nth-last-child(5):not(:contains("day"))
optional: true optional: true
filters: filters:
- name: append - name: append
@@ -155,16 +157,16 @@ search:
date: date:
# Today 02:40 PM # Today 02:40 PM
# Yesterday 09:10 AM # Yesterday 09:10 AM
selector: td:nth-last-child(5):contains("day") selector: div.torrenttable:nth-last-child(5):contains("day")
optional: true optional: true
size: size:
selector: td:nth-last-child(4) selector: div.torrenttable:nth-last-child(4)
grabs: grabs:
selector: td:nth-last-child(3) selector: div.torrenttable:nth-last-child(3)
seeders: seeders:
selector: td:nth-last-child(2) selector: div.torrenttable:nth-last-child(2)
leechers: leechers:
selector: td:nth-last-child(1) selector: div.torrenttable:nth-last-child(1)
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src$="/pic/freeleech.gif"]: 0 img[src$="/pic/freeleech.gif"]: 0