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

View File

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