fix(indexers): redacted infourl (#701)

This commit is contained in:
soup 2023-02-07 11:17:20 +01:00 committed by GitHub
parent fe5e15a333
commit 1bbd3d9155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}"