mirror of
https://github.com/idanoo/autobrr
synced 2025-07-24 01:09:13 +00:00
refactor: indexer definitions (#21)
This commit is contained in:
parent
2288997335
commit
9aaf79e7bb
12 changed files with 34 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue