autobrr/internal/indexer/definitions/torrentday.yaml
GregTroar 35d3817bd4
Indexers: Add TD, MTV, TS and Milkie (#45)
* feat: add Milkie definition

* feat: add TorrentDay definition

* feat: add MoreThanTV definition

* feat: add TorrentSeeds definition

Co-authored-by: Ludvig Lundgren <hello@ludviglundgren.se>
2021-12-23 23:34:49 +01:00

60 lines
1.6 KiB
YAML

---
#id: torrentday
name: TorrentDay
identifier: torrentday
description: TorrentDay (TD) is a private torrent tracker for GENERAL.
language: en-us
urls:
- https://www.torrentday.com
privacy: private
protocol: torrent
supports:
- irc
- rss
source: custom
settings:
- name: passkey
type: secret
label: Passkey
help: "Create a RSS Link to find out your PASSKEY"
irc:
network: TorrentDay
server: irc.torrentday.com
port: 6697
tls: true
channels:
- "#td.announce"
announcers:
- TD_Announce
settings:
- name: nickserv.account
type: text
required: true
label: NickServ Account
help: NickServ account. Make sure to group your user and bot. Eg. username_autodl
- name: nickserv.password
type: secret
required: false
label: NickServ Password
help: NickServ password
parse:
type: single
lines:
- test:
- "[Movie/4K] This is a Movie 2160p UHD BluRay x265-TEST - https://www.torrentday.com/details.php?id=0000000 - 5.83 GB"
- "[Movie/4K] This is a Movie 2160p UHD BluRay x265-TEST FREELEECH - https://www.torrentday.com/details.php?id=0000000 - 5.83 GB"
pattern: '\[([^\]]*)] (.*?)\s*(FREELEECH)*\s*-\s+(https?\:\/\/[^\/]+).*[&\?]id=(\d+)\s*- (.*)'
vars:
- category
- torrentName
- freeleech
- baseUrl
- torrentId
- size
match:
torrenturl: "{{ .baseUrl }}/download.php/{{ .torrentId }}/{{ .torrentName }}.torrent?torrent_pass={{ .passkey }}"
encode:
- torrentName