From 6bf0f4a44674e68bcdb214ad8f6362069f56def4 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 1 Dec 2019 16:34:46 +1300 Subject: [PATCH] add bittirrent.AM a public tracker. resolves #6452 --- README.md | 1 + .../Definitions/bittorrentam.yml | 68 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 src/Jackett.Common/Definitions/bittorrentam.yml diff --git a/README.md b/README.md index e2a08c839..bd286fc97 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * AudioBook Bay (ABB) * BigFANGroup * BitRu + * BitTorrent.AM * BTDB * BTDIGG * BT.etree diff --git a/src/Jackett.Common/Definitions/bittorrentam.yml b/src/Jackett.Common/Definitions/bittorrentam.yml new file mode 100644 index 000000000..7f7b48635 --- /dev/null +++ b/src/Jackett.Common/Definitions/bittorrentam.yml @@ -0,0 +1,68 @@ +--- + site: bittorrentam + name: Bittorrent.AM + description: "Bittorrent.AM is a Public torrent index" + language: en-us + type: public + encoding: UTF-8 + links: + - http://www.bittorrent.am/ + + caps: + categorymappings: + - {id: 0, cat: XXX, desc: "Adult"} + - {id: 1, cat: TV/Anime, desc: "Anime / Hentai"} + - {id: 2, cat: PC, desc: "Apps"} + - {id: 3, cat: Console, desc: "Games"} + - {id: 4, cat: Movies, desc: "Movies"} + - {id: 5, cat: Audio, desc: "Music"} + - {id: 6, cat: Other, desc: "Other"} + - {id: 7, cat: TV, desc: "Series / TV Shows"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + settings: [] + + download: + selector: a[ href^="magnet:?xt="] + + search: + paths: + - path: "{{if .Keywords}}search.php?kwds={{ .Keywords}}{{else}}/{{end}}" + rows: + selector: table.torrentsTable:has(tr.r) tbody tr.r + fields: + category: + text: 6 + title: + selector: td:nth-child(3) a + details: + selector: td:nth-child(3) a + attribute: href + download: + selector: td:nth-child(3) a + attribute: href + date: + selector: td:nth-child(1) + filters: + - name: dateparse + args: "02 Jan 2006" + size: + selector: td:nth-child(4) + seeders: + selector: td:nth-child(5) + filters: + - name: replace + args: ["-", "1"] + leechers: + selector: td:nth-child(6) + filters: + - name: replace + args: ["-", "0"] + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1