From 35d3817bd4420d38cc7898a4fb95bd8b10fb3c63 Mon Sep 17 00:00:00 2001 From: GregTroar Date: Thu, 23 Dec 2021 23:34:49 +0100 Subject: [PATCH] Indexers: Add TD, MTV, TS and Milkie (#45) * feat: add Milkie definition * feat: add TorrentDay definition * feat: add MoreThanTV definition * feat: add TorrentSeeds definition Co-authored-by: Ludvig Lundgren --- internal/indexer/definitions/milkie.yaml | 57 +++++++++++++++++ internal/indexer/definitions/morethantv.yaml | 61 ++++++++++++++++++ internal/indexer/definitions/torrentday.yaml | 60 ++++++++++++++++++ .../indexer/definitions/torrentseeds.yaml | 63 +++++++++++++++++++ 4 files changed, 241 insertions(+) create mode 100644 internal/indexer/definitions/milkie.yaml create mode 100644 internal/indexer/definitions/morethantv.yaml create mode 100644 internal/indexer/definitions/torrentday.yaml create mode 100644 internal/indexer/definitions/torrentseeds.yaml diff --git a/internal/indexer/definitions/milkie.yaml b/internal/indexer/definitions/milkie.yaml new file mode 100644 index 0000000..8a1aa6b --- /dev/null +++ b/internal/indexer/definitions/milkie.yaml @@ -0,0 +1,57 @@ +--- +#id: Milkie +name: Milkie +identifier: milkie +description: Milkie is a private torrent tracker for GENERAL. +language: en-us +urls: + - https://www.milkie.cc +privacy: private +protocol: torrent +supports: + - irc + - rss +source: custom +settings: + - name: apikey + type: secret + label: Api key + help: "Go to your profile and copy your Api key from settings" + regex: /([a-zA-Z0-9\+]) + +irc: + network: p2p-network.net + server: irc.p2p-network.net + port: 6697 + tls: true + channels: + - "#milkie-announce" + announcers: + - the_cow + settings: + - name: nickserv.account + type: text + required: true + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. Eg. user_bot + - name: nickserv.password + type: secret + required: false + label: NickServ Password + help: NickServ password + +parse: + type: single + lines: + - test: + - "{tv} :: The.Great.Xmas.Show.S00E00.1080p.WEB.H264-TEST :: [1080p, web] :: https://milkie.cc/browse/xxxxxxxxxxxx" + pattern: '{(.*)}\s::\s(.*)\s::\s\[(.*)\]\s::\s(https?\:\/\/[^\/]+\/)browse\/(.*)' + vars: + - category + - torrentName + - tags + - baseUrl + - torrentId + + match: + torrenturl: "{{ .baseUrl }}api/v1/torrents/{{ .torrentId }}/torrent?key={{ .apikey }}" diff --git a/internal/indexer/definitions/morethantv.yaml b/internal/indexer/definitions/morethantv.yaml new file mode 100644 index 0000000..132889b --- /dev/null +++ b/internal/indexer/definitions/morethantv.yaml @@ -0,0 +1,61 @@ +--- +#id: MoreThanTv +name: MoreThanTv +identifier: morethantv +description: MoreThanTv (MTV) is a torrent tracker for Series and Movies. +language: en-us +urls: + - https://www.morethantv.me +privacy: private +protocol: torrent +supports: + - irc + - rss +source: gazelle +settings: + - name: authkey + type: secret + label: Auth key + help: Right click DL on a torrent and get the authkey. + - name: torrent_pass + type: secret + label: Torrent pass + help: Right click DL on a torrent and get the torrent_pass. + +irc: + network: digitalirc.org + server: irc.digitalirc.org + port: 6697 + tls: true + channels: + - "#mtv-announce" + announcers: + - Jarvis + settings: + - name: nickserv.account + type: text + required: true + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. Eg. user_bot + - name: nickserv.password + type: secret + required: false + label: NickServ Password + help: NickServ password + +parse: + type: single + lines: + - test: + - "TV.Show.2008.720p.BluRay.DTS.x264-TEST - Size: 6.56 GiB - Uploader: Test - Tags: autoup,h264,hd,dts.audio,bluray,720p,p2p.group.release,Test.release,hd.movie - https://www.morethantv.me/torrents.php?torrentid=000000" + pattern: '^(.*?) - Size: ([0-9]+?.*?) - Uploader: (.*?) - Tags: (.*) - (https?:\/\/.*torrents.php\?)torrentid=(.*)$' + vars: + - torrentName + - size + - uploader + - tags + - baseUrl + - torrentId + + match: + torrenturl: "{{ .baseUrl }}action=download&id={{ .torrentId }}&authkey={{ .authkey }}&torrent_pass={{ .torrent_pass }}" diff --git a/internal/indexer/definitions/torrentday.yaml b/internal/indexer/definitions/torrentday.yaml new file mode 100644 index 0000000..16b632c --- /dev/null +++ b/internal/indexer/definitions/torrentday.yaml @@ -0,0 +1,60 @@ +--- +#id: torrentday +name: TorrentDay +identifier: torrentday +description: TorrentDay (TD) is a private torrent tracker for GENERAL. +language: en-us +urls: + - https://www.torrentday.com +privacy: private +protocol: torrent +supports: + - irc + - rss +source: custom +settings: + - name: passkey + type: secret + label: Passkey + help: "Create a RSS Link to find out your PASSKEY" + +irc: + network: TorrentDay + server: irc.torrentday.com + port: 6697 + tls: true + channels: + - "#td.announce" + announcers: + - TD_Announce + settings: + - name: nickserv.account + type: text + required: true + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. Eg. username_autodl + - name: nickserv.password + type: secret + required: false + label: NickServ Password + help: NickServ password + +parse: + type: single + lines: + - test: + - "[Movie/4K] This is a Movie 2160p UHD BluRay x265-TEST - https://www.torrentday.com/details.php?id=0000000 - 5.83 GB" + - "[Movie/4K] This is a Movie 2160p UHD BluRay x265-TEST FREELEECH - https://www.torrentday.com/details.php?id=0000000 - 5.83 GB" + pattern: '\[([^\]]*)] (.*?)\s*(FREELEECH)*\s*-\s+(https?\:\/\/[^\/]+).*[&\?]id=(\d+)\s*- (.*)' + vars: + - category + - torrentName + - freeleech + - baseUrl + - torrentId + - size + + match: + torrenturl: "{{ .baseUrl }}/download.php/{{ .torrentId }}/{{ .torrentName }}.torrent?torrent_pass={{ .passkey }}" + encode: + - torrentName diff --git a/internal/indexer/definitions/torrentseeds.yaml b/internal/indexer/definitions/torrentseeds.yaml new file mode 100644 index 0000000..fa870eb --- /dev/null +++ b/internal/indexer/definitions/torrentseeds.yaml @@ -0,0 +1,63 @@ +--- +#id: TorrentSeeds +name: TorrentSeeds +identifier: torrentseeds +description: TorrentSeeds (TS) is a GENERAL/0-DAY tracker with great pretimes. +language: en-us +urls: + - https://torrentseeds.org +privacy: private +protocol: torrent +supports: + - irc + - rss +source: custom +settings: + - name: passkey + type: secret + label: Passkey + help: "Go to General / Get RSS / Check a category and click create your passkey is after torrent_pass=" + +irc: + network: Torrentseeds.org + server: irc.torrentseeds.org + port: 6697 + tls: true + channels: + - "#announce" + announcers: + - torrentseeds + settings: + - name: nickserv.account + type: text + required: true + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. Eg. user_bot + - name: nickserv.password + type: secret + required: false + label: NickServ Password + help: NickServ password + - name: invite_command + type: secret + default: "Cerberus identify USERNAME IRCKEY" + required: true + label: Invite command + help: Invite auth with Cerberus. Replace USERNAME and IRCKEY + +parse: + type: single + lines: + - test: + - "New: This.Is.A.New.show.S00E00.720p.WEB.H264-Test .:. Category: TV/HD .:. Size: 364.82 MB .:. URL: https://www.torrentseeds.org/details.php?id=000000 .:. Uploaded by: George." + pattern: 'New: (.*) .:. Category: (.*) .:. Size: (.*) .:. URL: (https?\:\/\/[^\/]+)\/.*id=(\d+) .:. Uploaded by: (.*).' + vars: + - torrentName + - category + - size + - baseUrl + - torrentId + - uploader + + match: + torrenturl: "{{ .baseUrl }}/download.php?torrent={{ .torrentId }}&torrent_pass={{ .passkey }}"