yourbittorrent: update for current layout.

This commit is contained in:
Garfield69 2019-12-05 14:47:05 +13:00
parent 98fc07e82b
commit 25302d939f
1 changed files with 18 additions and 10 deletions

View File

@ -7,6 +7,8 @@
encoding: UTF-8 encoding: UTF-8
links: links:
- https://yourbittorrent.com/ - https://yourbittorrent.com/
legacylinks:
- https://yourbittorrent.host/
caps: caps:
categories: categories:
@ -28,9 +30,6 @@
settings: [] settings: []
download:
selector: a[href^="/down/"]
search: search:
paths: paths:
- path: / - path: /
@ -51,16 +50,25 @@
attribute: title attribute: title
title: title:
selector: td:nth-child(2) a selector: td:nth-child(2) a
attribute: title
details: details:
selector: td:nth-child(2) a selector: td:nth-child(2) a
attribute: href attribute: href
download: download:
selector: td:nth-child(2) a selector: td:nth-child(2) a
attribute: href attribute: href
# /down/22019747.torrent
filters:
- name: split
args: ["/", 2]
- name: prepend
args: "/down/"
- name: append
args: ".torrent"
size: size:
selector: td:nth-child(4) selector: td:nth-child(3)
date: date:
selector: td:nth-child(5):not(:contains("/")) selector: td:nth-child(4):not(:contains("/"))
optional: true optional: true
filters: filters:
- name: replace - name: replace
@ -69,16 +77,16 @@
args: ["Yesterday", "1 day"] args: ["Yesterday", "1 day"]
- name: timeago - name: timeago
date: date:
selector: td:nth-child(5):contains("/") selector: td:nth-child(4):contains("/")
optional: true optional: true
filters: filters:
- name: dateparse - name: dateparse
args: "02/01/06" args: "02/01/06"
seeders: seeders:
selector: td:nth-child(6) selector: td:nth-child(5)
leechers: leechers:
selector: td:nth-child(7) selector: td:nth-child(6)
downloadvolumefactor: downloadvolumefactor:
text: "0" text: 0
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1