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 - rss
# source: gazelle # source: gazelle
settings: settings:
- name: authkey
type: secret
required: true
label: Auth key
help: Right click DL on a torrent and get the authkey.
- name: torrent_pass - name: torrent_pass
type: text type: secret
required: true required: true
label: Torrent pass label: Torrent pass
help: Right click DL on a torrent and get the torrent_pass. help: Right click DL on a torrent and get the torrent_pass.
@ -67,7 +73,7 @@ irc:
baseUrl: https://brokenstones.is/ baseUrl: https://brokenstones.is/
groupId: "777" groupId: "777"
torrentId: "666" 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: vars:
- torrentName - torrentName
- torrentSize - torrentSize
@ -79,4 +85,4 @@ irc:
match: match:
infourl: "/torrents.php?id={{ .groupId }}" 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 }}"