From e0be2a1e3e499a6e7d2fe327866ada8d82efde1f Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Wed, 31 Aug 2022 15:47:47 +0200 Subject: [PATCH] feat(indexers): add PolishTracker (#436) * feat(indexers): add PolishTracker * fix(indexers): PT update port --- .../indexer/definitions/polishtracker.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 internal/indexer/definitions/polishtracker.yaml diff --git a/internal/indexer/definitions/polishtracker.yaml b/internal/indexer/definitions/polishtracker.yaml new file mode 100644 index 0000000..7adfc1a --- /dev/null +++ b/internal/indexer/definitions/polishtracker.yaml @@ -0,0 +1,66 @@ +--- +#id: polishtracker +name: PolishTracker +identifier: polishtracker +description: PolishTracker (PT) is a POLISH private torrent tracker for 0DAY / GENERAL. +language: en-us +urls: + - https://pte.nu +privacy: private +protocol: torrent +supports: + - irc + - rss +source: custom +settings: + - name: rsskey + type: secret + label: RSS key + help: "Go to your profile and copy your RSS key" + +irc: + network: PolishTracker + server: irc.pte.nu + port: 6775 + tls: true + channels: + - "#pt-announce" + announcers: + - PT-BOT + settings: + - name: nickserv.account + type: text + required: false + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. Eg. user_bot + + - name: nickserv.password + type: secret + required: true + label: NickServ Password + help: NickServ password + + - name: invite_command + type: secret + default: "PT-BOT invite IRC_KEY" + required: true + label: Invite command + help: Invite auth with PT-BOT. Replace IRC_KEY with your IRC key. + +parse: + type: single + lines: + - test: + - "::: PolishTracker ::: Torrent ( Some.Movie.2017.PLSUB.1080p.BDRip.x264-GROUP ) || Kategoria: ( movies HD ) || Rozmiar: ( 2.14 GB ) || Link: ( https://pte.nu/torrents/000000 ) || Wiecej: ( http://www.filmweb.pl/film?id=000000 )" + - "::: PolishTracker ::: Torrent ( Some.Other.Movie.1985.iNTERNAL.BDRip.x264-GROUP ) || Kategoria: ( movies SD ) || Rozmiar: ( 1.15 GB ) || Link: ( https://pte.nu/torrents/000000 )" + - "::: PolishTracker ::: Torrent ( Some.Other.Movie.1985.iNTERNAL.720p.BluRay.x264-GROUP ) || Kategoria: ( movies HD ) || Rozmiar: ( 5.02 GB ) || Link: ( https://pte.nu/torrents/000000 )" + pattern: '::: PolishTracker ::: Torrent \( (.*) \) \|\| Kategoria: \( (.*) \) \|\| Rozmiar: \( (.*) \) \|\| Link: \( (https://.*)/torrents/(\d+) \)' + vars: + - torrentName + - category + - torrentSize + - baseUrl + - torrentId + + match: + torrenturl: "{{ .baseUrl }}/downrss/{{ .rsskey }}/{{ .torrentId }}"