mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +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>
83 lines
2.3 KiB
YAML
83 lines
2.3 KiB
YAML
---
|
|
#id: ptf
|
|
name: PTFiles
|
|
identifier: ptf
|
|
description: PTFiles (PTF) is a Private site for TV / MOVIES / GENERAL
|
|
language: en-us
|
|
urls:
|
|
- https://ptfiles.net/
|
|
privacy: private
|
|
protocol: torrent
|
|
supports:
|
|
- irc
|
|
- rss
|
|
# source: Other
|
|
settings:
|
|
- name: passkey
|
|
type: secret
|
|
required: true
|
|
label: Pass key
|
|
help: Grab your passkey from your RSS feed.
|
|
|
|
irc:
|
|
network: P2P-Network
|
|
server: irc.p2p-network.net
|
|
port: 6697
|
|
tls: true
|
|
channels:
|
|
- "#PTF-Announce"
|
|
announcers:
|
|
- PTF
|
|
settings:
|
|
- name: nick
|
|
type: text
|
|
required: true
|
|
label: Username
|
|
help: Set your own username.
|
|
|
|
- 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
|
|
|
|
parse:
|
|
type: single
|
|
lines:
|
|
- tests:
|
|
- line: '[New TV/HD Episodes Torrent] Ancient.Aliens.S19E06.720p.HEVC.x265-MeGusta - 408.52 MiB - https://ptfiles.net/details.php?id=475999'
|
|
expect:
|
|
freeleech: ""
|
|
category: TV/HD Episodes
|
|
torrentName: Ancient.Aliens.S19E06.720p.HEVC.x265-MeGusta
|
|
torrentSize: 408.52 MiB
|
|
baseUrl: https://ptfiles.net/
|
|
torrentId: "475999"
|
|
- line: '[FREE][New Movies/1080p HD Torrent] Dead.for.a.Dollar.2022.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-xwMaRio - 26.32 GiB - https://ptfiles.net/details.php?id=476519'
|
|
expect:
|
|
freeleech: FREE
|
|
category: Movies/1080p HD
|
|
torrentName: Dead.for.a.Dollar.2022.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-xwMaRio
|
|
torrentSize: 26.32 GiB
|
|
baseUrl: https://ptfiles.net/
|
|
torrentId: "476519"
|
|
pattern: '^\s*(?:\[([^\]]*)])?\s*\[New ([^\]]*) Torrent] (.*) - (.*) -\s*(https?\:\/\/[^\/]+\/).*[&\?]id=(\d+)$'
|
|
vars:
|
|
- freeleech
|
|
- category
|
|
- torrentName
|
|
- torrentSize
|
|
- baseUrl
|
|
- torrentId
|
|
|
|
match:
|
|
infourl: "/details.php?id={{ .torrentId }}"
|
|
torrenturl: "/dl.php/{{ .torrentId }}/{{ .passkey }}/{{ .torrentName }}.torrent"
|
|
encode:
|
|
- torrentName
|