mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
feat(indexers): add danishbytes (#146)
* feat(indexers): add danishbytes * docs: update supported indexers
This commit is contained in:
parent
246e3ddc26
commit
03ca3ed49a
3 changed files with 74 additions and 2 deletions
|
@ -7,7 +7,7 @@ autobrr monitors IRC announce channels to get releases as soon as they are avail
|
|||
## Features:
|
||||
|
||||
* Single binary + config for easy setup
|
||||
* Support for 21 trackers
|
||||
* Support for 25 trackers
|
||||
* Easy to use UI
|
||||
* Available torrent actions:
|
||||
* qBittorrent
|
||||
|
@ -29,6 +29,8 @@ Is your tracker missing? Add an issue to request it.
|
|||
* AnimeBytes
|
||||
* BeyondHD
|
||||
* BTN
|
||||
* DanishBytes
|
||||
* DigitalCore
|
||||
* EMP
|
||||
* FileList
|
||||
* GazelleGames
|
||||
|
|
|
@ -935,7 +935,7 @@ func (r *Release) MapVars(varMap map[string]string) error {
|
|||
}
|
||||
|
||||
if freeleech, err := getStringMapValue(varMap, "freeleech"); err == nil {
|
||||
r.Freeleech = strings.EqualFold(freeleech, "freeleech") || strings.EqualFold(freeleech, "yes")
|
||||
r.Freeleech = strings.EqualFold(freeleech, "freeleech") || strings.EqualFold(freeleech, "yes") || strings.EqualFold(freeleech, "1")
|
||||
}
|
||||
|
||||
if freeleechPercent, err := getStringMapValue(varMap, "freeleechPercent"); err == nil {
|
||||
|
@ -986,6 +986,10 @@ func (r *Release) MapVars(varMap map[string]string) error {
|
|||
r.ReleaseTags = releaseTags
|
||||
}
|
||||
|
||||
if resolution, err := getStringMapValue(varMap, "resolution"); err == nil {
|
||||
r.Resolution = resolution
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
66
internal/indexer/definitions/danishbytes.yaml
Normal file
66
internal/indexer/definitions/danishbytes.yaml
Normal file
|
@ -0,0 +1,66 @@
|
|||
---
|
||||
#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
|
||||
label: Passkey
|
||||
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: nickserv.account
|
||||
type: text
|
||||
required: true
|
||||
label: NickServ Account
|
||||
help: NickServ account. Make sure to group your user and bot. Eg. user|autodl
|
||||
- name: nickserv.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.
|
||||
|
||||
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: "{{ .baseUrl }}torrent/download/{{ .torrentId }}.{{ .passkey }}"
|
Loading…
Add table
Add a link
Reference in a new issue