From a3dcb0455ae0a78fe8b942b522ba7f9c6e6ce09c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 24 Feb 2020 09:27:15 +1300 Subject: [PATCH] btdb: new layout. resolves #7308 --- src/Jackett.Common/Definitions/btdb.yml | 44 ++++++++++++++++--------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/src/Jackett.Common/Definitions/btdb.yml b/src/Jackett.Common/Definitions/btdb.yml index a6c823ef8..7042c72ef 100644 --- a/src/Jackett.Common/Definitions/btdb.yml +++ b/src/Jackett.Common/Definitions/btdb.yml @@ -33,39 +33,53 @@ options: "time": "created" "length": "size" - "popular": "seeders" + "seeders": "seeders" search: paths: - - path: "{{ if .Keywords }}?s={{ .Keywords }}&sort={{ .Config.sort }}{{else}}recent?sort={{ .Config.sort }}{{end}}" + - path: "{{ if .Keywords }}search/{{ .Keywords }}/{{else}}recent{{end}}?sort={{ .Config.sort }}" rows: - selector: li[class$="item"] + selector: div.media fields: - title: - selector: h2[class$="title"] a[href*="/torrent/"] - attribute: title category: text: 1 + title: + selector: a[href^="/torrent/"] details: - selector: h2[class$="title"] a[href*="/torrent/"] + selector: a[href^="/torrent/"] + attribute: href + download: + selector: a[href*="/dl/"] attribute: href magnet: - selector: div[class$="info"] a[href^="magnet:?xt="] + selector: a[href^="magnet:?xt="] attribute: href + banner: + selector: a.img-thumbnail img + attribute: src + filters: + - name: replace + args: ["https://btdb.io/assets/img/placeholder.png", ""] size: - selector: div[class$="info"] span:nth-of-type(1) + selector: small:nth-of-type(1) strong files: - selector: div[class$="info"] span:nth-of-type(2) + selector: small:nth-of-type(2) strong + seeders: + selector: small:nth-of-type(3) strong + filters: + - name: replace + args: [",", ""] + leechers: + selector: small:nth-of-type(4) strong + filters: + - name: replace + args: [",", ""] date: - selector: div[class$="info"] span:nth-of-type(3) + selector: small:nth-of-type(5) strong filters: - name: timeago - seeders: - selector: div[class$="info"] span:nth-of-type(4) - leechers: - selector: div[class$="info"] span:nth-of-type(5) downloadvolumefactor: text: 0 uploadvolumefactor: