From a2c881a9682049c838355cc22750dbb2c18e944a Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 27 Jan 2019 20:10:25 +1300 Subject: [PATCH] add DIGBT a public DHT search engine. resolves #4344 --- README.md | 1 + src/Jackett.Common/Definitions/digbt.yml | 74 ++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 src/Jackett.Common/Definitions/digbt.yml diff --git a/README.md b/README.md index 269416143..b2cefd235 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * btbit * cpasbien * cpasbienClone + * DIGBT * ETTV * EliteTorrent.biz * ExtraTorrent.ag diff --git a/src/Jackett.Common/Definitions/digbt.yml b/src/Jackett.Common/Definitions/digbt.yml new file mode 100644 index 000000000..f8c0593b4 --- /dev/null +++ b/src/Jackett.Common/Definitions/digbt.yml @@ -0,0 +1,74 @@ +--- + site: digbt + name: DIGBT + description: "DIGBT is a Public BitTorrent DHT search engine" + language: en-us + type: public + encoding: UTF-8 + links: + - https://www.digbt.org/ + + caps: + categories: + # DIGBT does not support categories + 1: Other + + modes: + search: [q] + + settings: [] + + search: + # DIGBT does not support a default empty search or provide trending/latest/new pages + # attempt to fetch up to 50 results (10 per page) + paths: + - path: "search/{{if .Keywords}}{{.Keywords}}{{else}}test{{end}}?c=&s=time&u=y" + - path: "search/{{if .Keywords}}{{.Keywords}}-time-2/{{else}}test-time-2/{{end}}?c=&s=time&u=y" + - path: "search/{{if .Keywords}}{{.Keywords}}-time-3/{{else}}test-time-3/{{end}}?c=&s=time&u=y" + - path: "search/{{if .Keywords}}{{.Keywords}}-time-4/{{else}}test-time-4/{{end}}?c=&s=time&u=y" + - path: "search/{{if .Keywords}}{{.Keywords}}-time-5/{{else}}test-time-5/{{end}}?c=&s=time&u=y" + rows: + selector: tr td.x-item + fields: + title: + selector: div a + category: + text: "1" + details: + selector: div a + attribute: href + download: + selector: div.tail a[href^="magnet:?"] + attribute: href + magnet: + selector: div.tail a[href^="magnet:?"] + attribute: href + date: + selector: div span.ctime + filters: + - name: replace + args: ["yesterday", "1 day"] + - name: timeago + size: + selector: div.tail + filters: + - name: regexp + args: "Size: (.+?) Downloads:" + files: + selector: div.tail + filters: + - name: regexp + args: "Files: (.+?) Size:" + seeders: + text: "1" + leechers: + text: "1" + grabs: + selector: div.tail + filters: + - name: regexp + args: "Downloads: (.+?) Updated:" + downloadvolumefactor: + text: "0" + uploadvolumefactor: + text: "1"