From 806eabde314e7e54c781590a064b4eab800d5968 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 20 Feb 2019 09:36:12 +1300 Subject: [PATCH] add torrentProject2 a clone of the original, but without categories. --- README.md | 1 + .../Definitions/torrentproject2.yml | 86 +++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 src/Jackett.Common/Definitions/torrentproject2.yml diff --git a/README.md b/README.md index 6ddf9e452..bfa87ee19 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * TorrentFunk * TorrentGalaxy.org (TGx) * TorrentKitty + * TorrentProject2 * Torrents.csv * Torrent9 * Torernt9 clone (torrents9.ch) diff --git a/src/Jackett.Common/Definitions/torrentproject2.yml b/src/Jackett.Common/Definitions/torrentproject2.yml new file mode 100644 index 000000000..5a59e5f17 --- /dev/null +++ b/src/Jackett.Common/Definitions/torrentproject2.yml @@ -0,0 +1,86 @@ +--- + site: torrentproject2 + name: TorrentProject2 + description: "TorrentProject2 is a Public torrent meta-search engine" + language: en-us + type: public + encoding: UTF-8 + links: + - https://torrentproject2.se/ + + caps: + categories: + "video tv": TV + "video dvd": Movies/SD + "Video Dvdrip": Movies/SD + "video hdrip": Movies/HD + "Video Lq": Movies/Foreign + "audio mp3": Audio/MP3 + "audio lossless": Audio/Lossless + "video": Movies + "ebooks": Books/Ebook + "Ebooks Comics": Books/Comics + "Ebooks Magazines": Other + "Ebooks Audiobook": Audio/Audiobook + "Ebooks Tutorials": Books/Ebook + "Games PC": PC/Games + "Games Nintendo": Console + "Games PlayStation": Console + "Games XBox": Console/XBox + "Mobile": PC/Phone-Other + "Applications": PC + "Images": Other + "Other": Other + + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + settings: + - name: filter-verified + type: checkbox + label: "Only include verifed content in results" + default: false + + download: + selector: "#download > div:nth-child(2) > div:nth-child(1) > a" + attribute: href + filters: + - name: replace + args: ["https://mylink.me.uk/?url=" ,""] + - name: urldecode + + search: + paths: + - path: "?t={{if .Keywords}}{{.Keywords}}{{else}}test{{end}}&orderby=latest{{if .Config.filter-verified }}&safe=on{{else}}{{end}}" + followredirect: true + rows: + selector: "#similarfiles div:has(a[href^=\"/t3-\"])" + fields: + title: + selector: span > a + details: + selector: span > a + attribute: href + download: + selector: span > a + attribute: href + category: + text: "Other" + category: + optional: true + selector: div > span:nth-child(1) > span + date: + selector: div > span:nth-child(4) + size: + selector: div > span:nth-child(5) + seeders: + selector: div > span:nth-child(2) + leechers: + selector: div > span:nth-child(3) + downloadvolumefactor: + text: "0" + uploadvolumefactor: + text: "1" \ No newline at end of file