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>
92 lines
2.9 KiB
YAML
92 lines
2.9 KiB
YAML
---
|
|
#id: polishtracker
|
|
name: PolishTracker
|
|
identifier: polishtracker
|
|
description: PolishTracker (PT) is a POLISH private torrent tracker for 0DAY / GENERAL.
|
|
language: en-us
|
|
urls:
|
|
- https://pte.nu/
|
|
privacy: private
|
|
protocol: torrent
|
|
supports:
|
|
- irc
|
|
- rss
|
|
# source: custom
|
|
settings:
|
|
- name: rsskey
|
|
type: secret
|
|
required: true
|
|
label: RSS key
|
|
help: "Go to your profile and copy your RSS key"
|
|
|
|
irc:
|
|
network: PolishTracker
|
|
server: irc.pte.nu
|
|
port: 6775
|
|
tls: true
|
|
channels:
|
|
- "#pt-announce"
|
|
announcers:
|
|
- PT-BOT
|
|
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
|
|
|
|
- name: invite_command
|
|
type: secret
|
|
default: "PT-BOT invite IRCKEY"
|
|
required: true
|
|
label: Invite command
|
|
help: Invite auth with PT-BOT. Replace IRCKEY with your IRC key.
|
|
|
|
parse:
|
|
type: single
|
|
lines:
|
|
- tests:
|
|
- line: '::: PolishTracker ::: Torrent ( Some.Movie.2017.PLSUB.1080p.BDRip.x264-GROUP ) || Kategoria: ( movies HD ) || Rozmiar: ( 2.14 GB ) || Link: ( https://pte.nu/torrents/000000 ) || Wiecej: ( http://www.filmweb.pl/film?id=000000 )'
|
|
expect:
|
|
torrentName: Some.Movie.2017.PLSUB.1080p.BDRip.x264-GROUP
|
|
category: movies HD
|
|
torrentSize: 2.14 GB
|
|
baseUrl: https://pte.nu/
|
|
torrentId: "000000"
|
|
- line: '::: PolishTracker ::: Torrent ( Some.Other.Movie.1985.iNTERNAL.BDRip.x264-GROUP ) || Kategoria: ( movies SD ) || Rozmiar: ( 1.15 GB ) || Link: ( https://pte.nu/torrents/000000 )'
|
|
expect:
|
|
torrentName: Some.Other.Movie.1985.iNTERNAL.BDRip.x264-GROUP
|
|
category: movies SD
|
|
torrentSize: 1.15 GB
|
|
baseUrl: https://pte.nu/
|
|
torrentId: "000000"
|
|
- line: '::: PolishTracker ::: Torrent ( Some.Other.Movie.1985.iNTERNAL.720p.BluRay.x264-GROUP ) || Kategoria: ( movies HD ) || Rozmiar: ( 5.02 GB ) || Link: ( https://pte.nu/torrents/000000 )'
|
|
expect:
|
|
torrentName: Some.Other.Movie.1985.iNTERNAL.720p.BluRay.x264-GROUP
|
|
category: movies HD
|
|
torrentSize: 5.02 GB
|
|
baseUrl: https://pte.nu/
|
|
torrentId: "000000"
|
|
pattern: '::: PolishTracker ::: Torrent \( (.+) \) \|\| Kategoria: \( (.+) \) \|\| Rozmiar: \( (.+) \) \|\| Link: \( (https:\/\/.+\/)torrents\/(\d+) \)'
|
|
vars:
|
|
- torrentName
|
|
- category
|
|
- torrentSize
|
|
- baseUrl
|
|
- torrentId
|
|
|
|
match:
|
|
infourl: "/torrents/{{ .torrentId }}"
|
|
torrenturl: "/downrss/{{ .rsskey }}/{{ .torrentId }}"
|