This commit is contained in:
kaso17 2018-11-01 16:47:55 +01:00
commit e606363ee7
2 changed files with 31 additions and 14 deletions

View File

@ -37,10 +37,10 @@
search:
paths:
- path: "{{if .Keywords}}search/{{ .Keywords}}/{{else}}recent/{{end}}"
- path: "{{if .Keywords}}s/{{ .Keywords}}/page/2{{else}}{{end}}"
- path: "{{if .Keywords}}s/{{ .Keywords}}/page/3{{else}}{{end}}"
- path: "{{if .Keywords}}s/{{ .Keywords}}/page/4{{else}}{{end}}"
- path: "{{if .Keywords}}s/{{ .Keywords}}/page/5{{else}}{{end}}"
- path: "{{if .Keywords}}s/{{ .Keywords}}/page/2{{else}}recent/2{{end}}"
- path: "{{if .Keywords}}s/{{ .Keywords}}/page/3{{else}}recent/3{{end}}"
- path: "{{if .Keywords}}s/{{ .Keywords}}/page/4{{else}}recent/4{{end}}"
- path: "{{if .Keywords}}s/{{ .Keywords}}/page/5{{else}}recent/5{{end}}"
rows:
selector: li:has(div.opt-text-w3layouts)
filters:
@ -58,23 +58,34 @@
- name: replace
args: ["/browse/", ""]
magnet:
selector: div.opt-text-w3layouts a
selector: a[href^="magnet:?"]
attribute: href
date:
selector: div.seedbar span:nth-child(3)
selector: div.seedbar span:nth-child(4)
filters:
- name: replace
args: ["Age: ", ""]
- name: timeago
files:
selector: div.seedbar span:nth-child(4)
selector: div.seedbar span:nth-child(5)
filters:
- name: replace
args: ["Files: ", ""]
size:
selector: div.seedbar span:nth-child(2)
selector: div.seedbar span:nth-child(3)
filters:
- name: replace
args: ["Size: ", ""]
seeders:
selector: div.seedbar span:nth-child(1)
filters:
- name: replace
args: ["Seed: ", ""]
leechers:
text: "1"
selector: div.seedbar span:nth-child(2)
filters:
- name: replace
args: ["Leech: ", ""]
downloadvolumefactor:
text: "0"
uploadvolumefactor:

View File

@ -144,21 +144,27 @@
# - name: regexp
# args: "src=(.+?) "
size:
selector: td:nth-last-child(3)
selector: td:nth-last-child(2)
date:
selector: td:nth-last-child(7)
selector: td:nth-last-child(6):contains('ago')
optional: true
filters:
- name: timeago
date:
selector: td:nth-last-child(6):contains('/')
optional: true
filters:
- name: dateparse
args: "02/01/2006"
grabs:
selector: td:nth-last-child(4)
selector: td:nth-last-child(3)
filters:
- name: replace
args: ["---", "0"]
seeders:
selector: td:nth-last-child(6)
leechers:
selector: td:nth-last-child(5)
leechers:
selector: td:nth-last-child(4)
downloadvolumefactor:
text: "0"
uploadvolumefactor: