mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00

* factor out test helpers * refactor, add tests for animebytes * revert test refactor * better name * change format, migrate some examples * migrated remaining test cases * add comment about `Test` vs `Tests` * refactor * reorder expectations to match vars * generate * turn on strict unmarshalling, remove old `Test` from schema * start modifying actual definitions * done with the As * Bs * C, D * E, F * G, H, I, ... L * M, N * O, P * R * bonus error. without this, pattern/vars disagreement can panic. * S * T, U * X.. Now we know our ABCs next time won't you sing with meeeee * fix another test * another driveby change * be less strict parsing custom definitions * fix(definitions): load custom definitions --------- Co-authored-by: ze0s <ze0s@riseup.net>
81 lines
2.2 KiB
YAML
81 lines
2.2 KiB
YAML
---
|
|
#id: romanianmetaltorrents
|
|
name: Romanian Metal Torrents
|
|
identifier: romanianmetaltorrents
|
|
description: Romanian Metal Torrents (RMT) is a private torrent tracker for METAL MUSIC.
|
|
language: en-us
|
|
urls:
|
|
- https://metal.iplay.ro/
|
|
privacy: private
|
|
protocol: torrent
|
|
supports:
|
|
- irc
|
|
- rss
|
|
# source: custom
|
|
settings:
|
|
- name: passkey
|
|
type: secret
|
|
required: true
|
|
label: Passkey
|
|
help: "Go to your profile and copy your passkey"
|
|
|
|
irc:
|
|
network: iPLAY
|
|
server: irc.iplay.ro
|
|
port: 6668
|
|
tls: false
|
|
channels:
|
|
- "#metal"
|
|
announcers:
|
|
- Metal
|
|
settings:
|
|
- name: nick
|
|
type: text
|
|
required: true
|
|
label: Nick
|
|
help: Bot nick. Eg. user_bot
|
|
|
|
- name: auth.account
|
|
type: text
|
|
required: true
|
|
label: NickServ Account
|
|
help: NickServ account. Make sure to group your user and bot.
|
|
|
|
- name: auth.password
|
|
type: secret
|
|
required: true
|
|
label: NickServ Password
|
|
help: NickServ password
|
|
|
|
parse:
|
|
type: single
|
|
lines:
|
|
- tests:
|
|
- line: 'New torrent: Artist-Album-2022-GROUP -- [Black Metal] -- https://metal.iplay.ro/details.php?id=000000 -- by Anonymous'
|
|
expect:
|
|
torrentName: Artist-Album-2022-GROUP
|
|
freeleech: ""
|
|
category: Black Metal
|
|
baseUrl: https://metal.iplay.ro/
|
|
torrentId: "000000"
|
|
uploader: Anonymous
|
|
- line: 'New torrent: Artist-Album -[WEB | FLAC]- RMT -- [FreeLeech!] -- [-Discography/Album Pack] -- https://metal.iplay.ro/details.php?id=000000 -- by Anonymous'
|
|
expect:
|
|
torrentName: Artist-Album -[WEB | FLAC]- RMT
|
|
freeleech: FreeLeech
|
|
category: -Discography/Album Pack
|
|
baseUrl: https://metal.iplay.ro/
|
|
torrentId: "000000"
|
|
uploader: Anonymous
|
|
pattern: 'New torrent: (.*?) (?:-- \[(.*)!\] )?-- \[(.*)] -- (https?://.+/).*id=(.*) -- by (.*)'
|
|
vars:
|
|
- torrentName
|
|
- freeleech
|
|
- category
|
|
- baseUrl
|
|
- torrentId
|
|
- uploader
|
|
|
|
match:
|
|
infourl: "/details.php?id={{ .torrentId }}"
|
|
torrenturl: "/download2.php?id={{ .torrentId }}&passkey={{ .passkey }}"
|