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,9 +55,10 @@ parse:
lines:
- test:
- "New Torrent: A Movie [2015] - GROUP Type: Movie / 1080p / Encode / Freeleech: 100 Size: 7.00GB - https://uhdbits.org/torrents.php?id=00000 / https://uhdbits.org/torrents.php?action=download&id=00000"
pattern: 'New Torrent: (.*) Type: (.*?) Freeleech: (.*) Size: (.*) - https?:\/\/.* \/ (https?:\/\/.*id=\d+)'
pattern: 'New Torrent: (.*) Type: (.*?) \/ (.*?) Freeleech: (.*) Size: (.*) - https?:\/\/.* \/ (https?:\/\/.*id=\d+)'
vars:
- torrentName
- category
- releaseTags
- freeleechPercent
- torrentSize