From 4b507a3cbb37885d779869b7cad07c87cde16026 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 7 Mar 2020 15:09:10 +1300 Subject: [PATCH] add torrentrex a public search engine. resolves #7515 --- README.md | 1 + src/Jackett.Common/Definitions/torrentrex.yml | 88 +++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 src/Jackett.Common/Definitions/torrentrex.yml diff --git a/README.md b/README.md index f3dcd4000..e002d5b18 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * TorrentKitty * TorrentParadise * TorrentProject2 + * TorrentRex * TorrentQuest * Torrents.csv * TorrentView diff --git a/src/Jackett.Common/Definitions/torrentrex.yml b/src/Jackett.Common/Definitions/torrentrex.yml new file mode 100644 index 000000000..2c69f9ad2 --- /dev/null +++ b/src/Jackett.Common/Definitions/torrentrex.yml @@ -0,0 +1,88 @@ +--- + site: torrentrex + name: TorrentRex + description: "TorrentRex is a Public search engine." + language: en-us + type: public + encoding: UTF-8 + links: + - https://torrentrex.com/ + + caps: + categories: + "anime": TV/Anime + "applications": PC + "ebooks": Books + "adult": XXX + "games": PC/Games + "movies": Movies + "music": Audio + "others": Other + "tv-series": TV + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + settings: [] + + search: + paths: + - path: search.php + inputs: + q: "{{ if .Keywords }}{{ .Keywords }}{{else}}2020{{end}}" + + rows: + selector: div.r_wr + + fields: + category: + selector: a.rslt_h2_a + attribute: href + filters: + - name: split + args: ["/", 1] + title: + selector: a.rslt_h2_a + details: + selector: a.rslt_h2_a + attribute: href + download: + selector: a[href*="/torrent/"] + attribute: href + magfile: + text: "{{ .Result.title }}" + filters: + - name: validfilename + magnet: + selector: a[href*="/torrent/"] + attribute: href + filters: + - name: split + args: ["/", 4] + - name: replace + args: [".torrent", ""] + - name: prepend + args: "magnet:?xt=urn:btih:" + - name: append + args: "&dn={{ .Result.magfile }}.torrent&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://tracker.opentrackr.org:1337" + date: + text: now + size: + text: "500 MB" + seeders: + selector: span:nth-of-type(2) + filters: + - name: regexp + args: (\d+) + leechers: + selector: span:nth-of-type(3) + filters: + - name: regexp + args: (\d+) + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# engine n/a