chdbits: new row selectors. resolves #15524

This commit is contained in:
Garfield69 2024-08-08 20:43:21 +12:00
parent 963f1857cb
commit 1d993cc482
1 changed files with 17 additions and 12 deletions

View File

@ -82,6 +82,11 @@ login:
path: torrents.php path: torrents.php
selector: a[href*="logout.php"] selector: a[href*="logout.php"]
download:
selectors:
- selector: a[href^="download.php?id="]
attribute: href
search: search:
paths: paths:
- path: torrents.php - path: torrents.php
@ -120,19 +125,11 @@ search:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
download: download:
selector: a[href^="download.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
size:
selector: td:nth-child(5)
grabs:
selector: td:nth-child(8)
seeders:
selector: td:nth-child(6)
leechers:
selector: td:nth-child(7)
date_elapsed: date_elapsed:
# time type: time elapsed (default) # time type: time elapsed (default)
selector: td:nth-child(4) > span[title] selector: td:nth-child(3) > span[title]
attribute: title attribute: title
optional: true optional: true
filters: filters:
@ -142,7 +139,7 @@ search:
args: "yyyy-MM-dd HH:mm:ss zzz" args: "yyyy-MM-dd HH:mm:ss zzz"
date_added: date_added:
# time added # time added
selector: td:nth-child(4):not(:has(span)) selector: td:nth-child(3):not(:has(span))
optional: true optional: true
filters: filters:
- name: append - name: append
@ -151,6 +148,14 @@ search:
args: "yyyy-MM-ddHH:mm:ss zzz" args: "yyyy-MM-ddHH:mm:ss zzz"
date: date:
text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}" text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
size:
selector: td:nth-child(4)
seeders:
selector: td:nth-child(5)
leechers:
selector: td:nth-child(6)
grabs:
selector: td:nth-child(7)
downloadvolumefactor: downloadvolumefactor:
case: case:
img.pro_free: 0 img.pro_free: 0
@ -168,4 +173,4 @@ search:
description: description:
selector: td:nth-child(2) selector: td:nth-child(2)
remove: a, b, font, img, span remove: a, b, font, img, span
# NexusPHP 73f201530b 2023-08-07 # NexusPHP Standard v1.5 Beta 4