btdb: support for thier new html. #2559

This commit is contained in:
Garfield69
2018-02-10 12:33:19 +13:00
parent 940863a1a4
commit 1c13158e79

View File

@@ -11,8 +11,6 @@
caps: caps:
categorymappings: categorymappings:
- {id: 1, cat: Other, desc: "Other"} - {id: 1, cat: Other, desc: "Other"}
- {id: 2, cat: TV, desc: "TV"}
- {id: 3, cat: Movies, desc: ""}
modes: modes:
search: [q] search: [q]
@@ -51,36 +49,21 @@
magnet: magnet:
selector: div[class$="info"] a[href^="magnet:"] selector: div[class$="info"] a[href^="magnet:"]
attribute: href attribute: href
size:
selector: div[class$="info"] span:nth-of-type(1)
files:
selector: div[class$="info"] span:nth-of-type(2)
date: date:
selector: div[class$="info"] selector: div[class$="info"] span:nth-of-type(3)
filters: filters:
- name: split
args: ["\n", 3]
- name: replace
args: ["AddTime: ", ""]
- name: dateparse - name: dateparse
args: "2006-01-02 15:04:05" args: "2006-01-02 15:04:05"
size:
selector: div[class$="info"]
filters:
- name: split
args: ["\n", 1]
- name: replace
args: ["Size: ", ""]
files:
selector: div[class$="info"]
filters:
- name: split
args: ["\n", 2]
- name: replace
args: ["Files: ", ""]
grabs: grabs:
selector: div[class$="info"] selector: div[class$="info"] span:nth-of-type(4)
filters: seeders:
- name: split text: "0"
args: ["\n", 4] leechers:
- name: replace text: "0"
args: ["Popularity: ", ""]
downloadvolumefactor: downloadvolumefactor:
text: "0" text: "0"
uploadvolumefactor: uploadvolumefactor: