feat(indexers): add BrokenStones (#1390)

* feat(indexers): add BrokenStones

* fix matching for groupId/torrentId urls

* add version(to title), size and category
This commit is contained in:
broken-stones 2024-02-08 06:42:45 -07:00 committed by GitHub
parent 90272188ca
commit ef7b5abe1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,82 @@
---
#id: brks
name: BrokenStones
identifier: brks
description: BrokenStones is a Private Torrent Tracker for macOS
language: en-us
urls:
- https://brokenstones.is/
privacy: private
protocol: torrent
supports:
- irc
- rss
# source: gazelle
settings:
- name: torrent_pass
type: text
required: true
label: Torrent pass
help: Right click DL on a torrent and get the torrent_pass.
irc:
network: BrokenStones
server: irc.brokenstones.is
port: 6697
tls: true
channels:
- "#announce"
announcers:
- stonekeeper
settings:
- name: nick
type: text
required: true
label: Nick
help: Bot nick. Eg. user-bot
- name: auth.account
type: text
required: true
label: NickServ Account
help: NickServ account. Make sure to group your user and bot.
- name: auth.password
type: secret
required: true
label: NickServ Password
help: NickServ password
- name: invite_command
type: secret
default: "stonekeeper enter USERNAME IRCKEY #announce"
required: true
label: Invite command
help: Invite auth with StoneKeeper. Replace USERNAME and IRCKEY.
parse:
type: single
lines:
- tests:
- line: 'TORRENT: Broken Stones [4.2.0/U2B] - 4.20 MB - Mac Category - private, tracker - https://brokenstones.is/torrents.php?id=777 / https://brokenstones.is/torrents.php?action=download&id=666'
expect:
torrentName: Broken Stones [4.2.0/U2B]
torrentSize: 4.20 MB
category: Mac Category
tags: private, tracker
baseUrl: https://brokenstones.is/
groupId: "777"
torrentId: "666"
pattern: 'TORRENT: (.*?) - (.*?) - (.*?) - (.*?) - (https:\/\/brokenstones\.is\/)torrents.php\?id=(\d+) \/ https:\/\/brokenstones.is\/torrents.php\?action=download&id=(\d+)'
vars:
- torrentName
- torrentSize
- category
- tags
- baseUrl
- groupId
- torrentId
match:
infourl: "/torrents.php?id={{ .groupId }}"
torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&torrent_pass={{ .torrent_pass }}"