autobrr/internal/indexer/definitions/danishbytes.yaml
ze0s 25a165b764
feat(indexers): add support for optional baseurl override (#551)
* feat(indexers): optional baseurl override

* feat(indexers): update baseUrl parsing

* refactor(indexers): BREAKING move parse to IRC struct

* Move Parse as part of IRC struct from Indexer
* Updated definitions
* Build torrentUrl in stages
* Use new url.JoinPath to build torrentUrl
* Update tests

* refactor(indexers): select option obj

* refactor(indexers): make backwards compatible
2022-12-03 15:40:45 +01:00

75 lines
1.8 KiB
YAML

---
#id: danishbytes
name: DanishBytes
identifier: danishbytes
description: DanishBytes is a private torrent tracker for HD MOVIES / TV
language: en-us
urls:
- https://danishbytes.club/
privacy: private
protocol: torrent
supports:
- irc
- rss
source: UNIT3D
settings:
- name: passkey
type: secret
required: true
label: RSS key
help: "Go to your profile tab under safety, copy RSS Key (RID)"
irc:
network: DanishBytes
server: irc.danishbytes.club
port: 6697
tls: false
channels:
- "#Announce"
announcers:
- DBBot
settings:
- name: nick
type: text
required: true
label: Nick
help: Bot nick. Eg. user_bot
- name: auth.account
type: text
required: false
label: NickServ Account
help: NickServ account. Make sure to group your user and bot.
- name: auth.password
type: secret
required: false
label: NickServ Password
help: NickServ password
- name: invite_command
type: secret
default: "DBBot announce IRCKEY"
required: true
label: Invite command
help: Invite auth with DBBot. Replace IRCKEY with your key.
parse:
type: single
lines:
- test:
- ":[N]-[Movies]-[Encode]-[720p]-[797 MiB]-[Some.Old.Movie.1972.720p.BluRay.x264.AAC-GROUP]-[Anonymous]-[https://danishbytes.club/torrents/0000]-[FL: 0]-[DU: 0];"
pattern: ':\[N\]-\[(.*)\]-\[(.*)\]-\[(.*)\]-\[(.*)\]-\[(.*)\]-\[(.*)\]-\[(.*\/)(?:.*\/)(.*)\]-\[FL: (.*)\]-\[DU: .*\];'
vars:
- category
- releaseTags
- resolution
- torrentSize
- torrentName
- uploader
- baseUrl
- torrentId
- freeleech
match:
torrenturl: "/torrent/download/{{ .torrentId }}.{{ .passkey }}"