fix(indexers): BrokenStones add auth key to download url (#1406)

* fix(indexers): BrokenStones fix auth for "real life" Actions.

* improve matching of torrentName

* fix expectations

* greedy up for torrentName
This commit is contained in:
broken-stones 2024-02-14 00:44:22 -07:00 committed by GitHub
parent 855e99b1d1
commit ac2550d518
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,8 +13,14 @@ supports:
- rss
# source: gazelle
settings:
- name: authkey
type: secret
required: true
label: Auth key
help: Right click DL on a torrent and get the authkey.
- name: torrent_pass
type: text
type: secret
required: true
label: Torrent pass
help: Right click DL on a torrent and get the torrent_pass.
@ -67,7 +73,7 @@ irc:
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+)'
pattern: 'TORRENT: (.*\]) - (.*?) - (.*?) - (.*?) - (https:\/\/brokenstones\.is\/)torrents.php\?id=(\d+) \/ https:\/\/brokenstones.is\/torrents.php\?action=download&id=(\d+)'
vars:
- torrentName
- torrentSize
@ -79,4 +85,4 @@ irc:
match:
infourl: "/torrents.php?id={{ .groupId }}"
torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&torrent_pass={{ .torrent_pass }}"
torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&authkey={{ .authkey }}&torrent_pass={{ .torrent_pass }}"