From 568e41de240fd7b71f3872cb9fa37cfd81e20746 Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:23:40 +0100 Subject: [PATCH] feat(indexers): add ABNormal (#1232) * feat(indexers): add Abnormal * fix: casing * fix: network name casing --- internal/indexer/definitions/abnormal.yaml | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 internal/indexer/definitions/abnormal.yaml diff --git a/internal/indexer/definitions/abnormal.yaml b/internal/indexer/definitions/abnormal.yaml new file mode 100644 index 0000000..6491899 --- /dev/null +++ b/internal/indexer/definitions/abnormal.yaml @@ -0,0 +1,71 @@ +#id: abnormal +name: ABNormal +identifier: abnormal +description: ABNormal (ABN) is a French General tracker +language: fr-fr +urls: + - https://abn.lol/ +privacy: private +protocol: torrent +supports: + - irc + - rss +source: gazelle +settings: + - name: uid + type: secret + label: User Id + help: This is the UserId in a RSS link. + + - name: passkey + type: secret + label: Torrent key + help: This is the TorrentKey in a RSS link. + +irc: + network: ABNormal + server: irc.abn.lol + port: 33333 + tls: true + channels: + - "#announce" + announcers: + - ABN_BOT + settings: + - name: nick + type: text + required: true + label: Nick + help: Bot nick. Eg. user_bot + + - name: auth.account + type: text + required: false + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. Eg. user|autodl + + - name: auth.password + type: secret + required: false + label: NickServ Password + help: NickServ password + + - name: pass + type: secret + required: true + label: Network password + + parse: + type: single + lines: + - test: + - "|2020/08/22 00:00:00| | https://abn.lol/Torrent/Details?ReleaseId=000000 | : |Action.Test.S01E01.FRENCH.WEB.x264-NOGROUP|" + pattern: '^\s*\|.+\|\s*\|\s(https?\:\/\/[^\/]+\/).*[&\?]ReleaseId\=(\d+)\s\|[\s:]+\|([^|]+)\|\s*' + vars: + - baseUrl + - torrentId + - torrentName + + match: + infourl: "/Torrent/Details?ReleaseId={{ .torrentId }}" + torrenturl: "/Feed/Download?UserID={{ .uid }}&TorrentKey={{ .passkey }}&ReleaseId={{ .torrentId }}"