From 1bbd3d91556ae2c82beaf636beb757f6eae211d7 Mon Sep 17 00:00:00 2001 From: soup Date: Tue, 7 Feb 2023 11:17:20 +0100 Subject: [PATCH] fix(indexers): redacted infourl (#701) --- internal/indexer/definitions/red.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/indexer/definitions/red.yaml b/internal/indexer/definitions/red.yaml index 83524ca..bfe6e05 100644 --- a/internal/indexer/definitions/red.yaml +++ b/internal/indexer/definitions/red.yaml @@ -85,16 +85,17 @@ irc: - test: - "Artist - Albumname [2008] [Single] - FLAC / Lossless / Log / 100% / Cue / CD - https://redacted.ch/torrents.php?id=0000000 / https://redacted.ch/torrents.php?action=download&id=0000000 - hip.hop,rhythm.and.blues,2000s" - "A really long name here - Concertos 5 and 6, Suite No 2 [1991] [Album] - FLAC / Lossless / Log / 100% / Cue / CD - https://redacted.ch/torrents.php?id=0000000 / https://redacted.ch/torrents.php?action=download&id=0000000 - classical" - pattern: '(.* (?:\[(.*)\] \[(.*)\] - (.*))?) - .* \/ (https?\:\/\/.+\/).+id=(\d+)[ -]*(.*)' + pattern: '(.* (?:\[(.*)\] \[(.*)\] - (.*))?) - .*id=(.*) \/ (https?://.+/).+id=(\d+)[ -]*(.*)' vars: - torrentName - year - category - releaseTags + - groupId - baseUrl - torrentId - tags match: - infourl: "/torrents.php?torrentid={{ .torrentId }}" + infourl: "/torrents.php?id={{ .groupId }}&torrentid={{ .torrentId }}" torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&authkey={{ .authkey }}&torrent_pass={{ .torrent_pass }}"