From ac2550d518a7c996f58f3d303a60c33c164e9d06 Mon Sep 17 00:00:00 2001 From: broken-stones <121735795+broken-stones@users.noreply.github.com> Date: Wed, 14 Feb 2024 00:44:22 -0700 Subject: [PATCH] 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 --- internal/indexer/definitions/brokenstones.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/indexer/definitions/brokenstones.yaml b/internal/indexer/definitions/brokenstones.yaml index 77b6912..f7d5708 100644 --- a/internal/indexer/definitions/brokenstones.yaml +++ b/internal/indexer/definitions/brokenstones.yaml @@ -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 }}"