refactor: indexer definitions (#21)

This commit is contained in:
Ludvig Lundgren 2021-08-30 20:11:23 +02:00 committed by GitHub
parent 2288997335
commit 9aaf79e7bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 34 additions and 29 deletions

View file

@ -55,11 +55,14 @@ parse:
- test:
- "TORRENT: That Artist - Albuum [2002] [Single] - FLAC / Lossless / WEB - 2000s,house,uk.garage,garage.house - https://orpheus.network/torrents.php?id=000000 / https://orpheus.network/torrents.php?action=download&id=0000000"
- "TORRENT: Something [2021] [Album] - FLAC / Lossless / CD - - https://orpheus.network/torrents.php?id=000000 / https://orpheus.network/torrents.php?action=download&id=0000000"
pattern: 'TORRENT: (.*) - (.*) - https?://.* / (https?://.*id=\d+)'
pattern: 'TORRENT: (.*) \[(.+?)\] \[(.+?)\] - (.*) - \s*(.*) - https?:\/\/.* \/ (https?:\/\/.*id=\d+)'
vars:
- torrentName
- year
- category
- releaseTags
- tags
- torrentId
- baseUrl
match:
torrenturl: "{{ .baseUrl }}&authkey={{ .authkey }}&torrent_pass={{ .torrent_pass }}"