From 6c6110430791e099dfeac8eef80365c43c0e494c Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Tue, 7 Dec 2021 05:17:09 +0000 Subject: [PATCH] torrentby: add new belarusian tracker. resolves #12639 (#12652) --- README.md | 1 + src/Jackett.Common/Definitions/torrentby.yml | 85 ++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 src/Jackett.Common/Definitions/torrentby.yml diff --git a/README.md b/README.md index 01768524e..dca8944d3 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * Torrent Downloads (TD) * Torrent Oyun indir * Torrent Paradise (ML) + * torrent.by * torrent-pirat * Torrent9 * Torrent9 clone diff --git a/src/Jackett.Common/Definitions/torrentby.yml b/src/Jackett.Common/Definitions/torrentby.yml new file mode 100644 index 000000000..afa9ff401 --- /dev/null +++ b/src/Jackett.Common/Definitions/torrentby.yml @@ -0,0 +1,85 @@ +--- +id: torrentby +name: torrent.by +description: "torrent.by is a BELARUSIAN public Torrent Tracker" +language: ru-RU +type: public +encoding: UTF-8 +links: + - https://torrent.by/ +certificates: + - 7536f57e6640c3fce3784736994be95585a85dfb + +caps: + categories: + Other: Other + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + music-search: [q] + book-search: [q] + +settings: + - name: info_8000 + type: info + label: About torrent.by Categories + default: torrent.by does not return categories in its search results.
To add to your Apps' Torznab indexer, replace all categories with 8000(Other). + +search: + paths: + - path: "{{ if .Keywords }}search/?search={{ .Keywords }}&cat=0&search_in=0{{ else }}today{{ end }}" + + rows: + selector: tr[class^="ttable_col"] + + fields: + category: + text: other + title: + selector: td:nth-child(3) a + filters: + - name: re_replace + args: ["(?i)S*(\\d{2,3})[xх](\\d{2,3})", "S$1E$2"] + - name: re_replace + args: ["(?i)E*(\\d{2,3})-(\\d{2,3})\\s*из\\s*(\\d{2,3})", "E$1-$2 из $3"] + details: + selector: td:nth-child(3) a + attribute: href + download: + selector: a[href^="/d.php?id="] + attribute: href + magnet: + selector: a[href^="magnet:?xt="] + attribute: href + size: + selector: td:nth-child(5) + seeders: + selector: td font[color="green"] + leechers: + selector: td font[color="red"] + date_day: + selector: td:nth-child(1):contains("Вчера"), td:nth-child(1):contains("Сегодня") + optional: true + filters: + - name: replace + args: ["Вчера", "Yesterday"] + - name: replace + args: ["Сегодня", "Today"] + - name: fuzzytime + date_year: + selector: td:nth-child(1):contains("-") + optional: true + filters: + - name: append + args: " +03:00" # MSK + - name: dateparse + args: "2006-01-02 -07:00" + date: + text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}" + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# engine n/a