From 29301aa91dccf09e73f1670c13ba5bef5704da63 Mon Sep 17 00:00:00 2001 From: Alex <1309035+AlexKvM@users.noreply.github.com> Date: Sun, 23 Jan 2022 23:37:19 +0700 Subject: [PATCH] Indexers: Add HDBits (#95) * Indexers: Add HDBits * docs: add hdb --- README.md | 1 + internal/indexer/definitions/hdb.yaml | 68 +++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 internal/indexer/definitions/hdb.yaml diff --git a/README.md b/README.md index b0aca02..132ca98 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Is your tracker missing? Add an issue to request it. * EMP * FileList * GazelleGames + * HDB * HD-Torrents * IPTorrents * Milkie diff --git a/internal/indexer/definitions/hdb.yaml b/internal/indexer/definitions/hdb.yaml new file mode 100644 index 0000000..5ff6474 --- /dev/null +++ b/internal/indexer/definitions/hdb.yaml @@ -0,0 +1,68 @@ +--- +#id: hdb +name: HDBits +identifier: hdb +description: Private HD tracker +language: en-us +urls: + - https://hdbits.org/ +privacy: private +protocol: torrent +supports: + - irc + - rss +source: custom +settings: + - name: passkey + type: secret + label: Passkey + help: Copy the passkey from your profile page + +irc: + network: P2P-Network + server: irc.p2p-network.net + port: 6697 + tls: true + channels: + - "#hdbits.announce" + announcers: + - midgards + settings: + - name: nickserv.account + type: text + required: true + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. Eg. user|autodl + - name: nickserv.password + type: secret + required: false + label: NickServ Password + help: NickServ password + - name: invite_command + type: secret + default: "midgards announce IRCKey" + required: true + label: Invite command + help: Invite auth with the key from https://hdbits.org/bot_invite.php + +parse: + type: single + lines: + - test: + - "New Torrent: Clockers 1995 1080p Blu-ray AVC DTS-HD MA 5.1-Anonymous - Type: Movie (H.264, Blu-ray/HD DVD) - Uploaded by: Anonymous - Size: 37.61 GiB - https://hdbits.org/details.php?id=12345&hit=1" + - "New Torrent: PilotsEYE tv: QUITO 2014 1080p Blu-ray AVC DD 2.0 - Type: Documentary (H.264, Blu-ray/HD DVD) - Uploaded by: Anonymous - Size: 23.14 GiB - https://hdbits.org/details.php?id=12345&hit=1" + - "New Torrent: Xiao Q 2019 720p BluRay DD-EX 5.1 x264-Anonymous - Type: Movie (H.264, Encode) Internal! - Uploaded by: Anonymous - Size: 4.54 GiB - https://hdbits.org/details.php?id=12345&hit=1" + - "New Torrent: The Gentlemen 2019 UHD Blu-ray English TrueHD 7.1 - Type: Audio Track - Uploaded by: Anonymous - Size: 3.19 GiB - https://hdbits.org/details.php?id=519896&hit=1" + pattern: '^New Torrent: (.+) - Type: (.+?) (?:\((.+)\))?\s?(Internal!)?\s?- Uploaded by: (.+) - Size: (.+) - (https://.+?/).+id=(\d+)' + vars: + - torrentName + - category + - releaseTags + - internal + - uploader + - torrentSize + - baseUrl + - torrentId + + match: + torrenturl: "{{ .baseUrl }}download.php?id={{ .torrentId }}&passkey={{ .passkey }}"