From 03118d02d8c2af9b33869f1e505c54d99286f05f Mon Sep 17 00:00:00 2001 From: soup Date: Fri, 6 Jan 2023 14:34:27 +0100 Subject: [PATCH] feat(indexers): add PTN (#615) * feat(indexers): add PTN * missing source * YAML not yml * set nickserv required to false * cleanup --- internal/indexer/definitions/ptn.yaml | 64 +++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 internal/indexer/definitions/ptn.yaml diff --git a/internal/indexer/definitions/ptn.yaml b/internal/indexer/definitions/ptn.yaml new file mode 100644 index 0000000..094847e --- /dev/null +++ b/internal/indexer/definitions/ptn.yaml @@ -0,0 +1,64 @@ +--- +#id: ptn +name: Piratethenet +identifier: ptn +description: PTN is a ratioless movie tracker. +language: en-us +urls: + - https://piratethenet.org/ +privacy: private +protocol: torrent +supports: + - irc + - rss +source: custom +settings: + - name: torrent_pass + type: secret + required: true + label: Torrent pass + help: Check the RSS feed for your passkey. + +irc: + network: TiK-T0K + server: irc.tik-t0k.net + port: 6697 + tls: true + channels: + - "#ptn.announce" + announcers: + - PTNBot + settings: + - name: nick + type: text + required: true + label: Nick + help: Bot nick. Eg. user|autodl + + - name: auth.account + type: text + required: false + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. + + - name: auth.password + type: secret + required: false + label: NickServ Password + help: NickServ password + + parse: + type: single + lines: + - test: + - "New in 720P: Rabbit.Without.Ears.II.2009.ROSUB.720p.BluRay.x264-ZoNE with 4.37 GB in 2F @ https://PTN/moviedetails.php?movieid=7036 https://PTN/details.php?id=65157" + pattern: 'New in (.*): (.*) with (.*) in .* (https?\:\/\/.+\/).+id=(.+)' + vars: + - category + - torrentName + - torrentSize + - baseUrl + - torrentId + + match: + torrenturl: "/download.php?torrent={{ .torrentId }}&torrent_pass={{ .torrent_pass }}" \ No newline at end of file