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

@ -15,7 +15,7 @@ supports:
source: xbtit
settings:
- name: cookie
type: text
type: secret
label: Cookie
help: "Check how to get cookies in your browser and find the uid and pass cookies. Example: uid=1234; pass=asdf12347asdf13"
@ -33,7 +33,7 @@ irc:
type: text
required: true
label: NickServ Account
help: NickServ account. Make sure to group your user and bot. Eg. user|bot
help: NickServ account. Make sure to group your user and bot. Eg. user-bot
- name: nickserv.password
type: secret
required: true
@ -45,16 +45,15 @@ parse:
lines:
- test:
- "New Torrent in category [Movies/Remux] That Movie (2008) Blu-ray 1080p REMUX AVC DTS-HD MA 7 1 (14.60 GB) uploaded! Download: https://hd-torrents.org/download.php?id=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
pattern: 'New Torrent in category \[([^\]]*)\] (.*) \(([^\)]*)\) uploaded! Download\: https?\:\/\/([^\/]+\/).*[&\?]id=([a-f0-9]+)'
pattern: 'New Torrent in category \[([^\]]*)\] (.*) \(([^\)]*)\) uploaded! Download\: (https?\:\/\/.*[&\?]id=.+)'
vars:
- category
- torrentName
- torrentSize
- baseUrl
- torrentId
match:
torrenturl: "https://{{ .baseUrl }}download.php?id={{ .torrentId }}&f={{ .torrentName }}.torrent"
torrenturl: "{{ .baseUrl }}&f={{ .torrentName }}.torrent"
cookie: true
encode:
- torrentName