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>
83 lines
2.2 KiB
YAML
83 lines
2.2 KiB
YAML
---
|
|
#id: onlyencodes
|
|
name: OnlyEncodes
|
|
identifier: onlyencodes
|
|
description: OnlyEncodes (OE) is a private torrent tracker for MOVIES / TV
|
|
language: en-us
|
|
urls:
|
|
- https://onlyencodes.cc
|
|
privacy: private
|
|
protocol: torrent
|
|
supports:
|
|
- irc
|
|
- rss
|
|
# source: UNIT3D
|
|
settings:
|
|
- name: rsskey
|
|
type: secret
|
|
required: true
|
|
label: RSS key (RID)
|
|
help: "Go to your profile > Settings > Security > RSS Key (RID) and paste your RID into this field."
|
|
|
|
irc:
|
|
network: OnlyEncodes
|
|
server: irc.onlyencodes.cc
|
|
port: 6697
|
|
tls: true
|
|
channels:
|
|
- "#announce"
|
|
announcers:
|
|
- OEBot
|
|
settings:
|
|
- name: nick
|
|
type: text
|
|
required: true
|
|
label: Nick
|
|
help: Use your username on the site.
|
|
|
|
- name: auth.account
|
|
type: text
|
|
required: true
|
|
label: NickServ Account
|
|
help: NickServ account
|
|
|
|
- name: auth.password
|
|
type: secret
|
|
required: true
|
|
label: NickServ Password
|
|
help: NickServ password
|
|
|
|
parse:
|
|
type: single
|
|
lines:
|
|
- tests:
|
|
- line: Category [Movie] Type [Remux] Name [Some Movie 1080p BluRay REMUX AVC TrueHD 7.1-GROUP] Resolution [1080p] Freeleech [0%] Internal [No] Double Upload [No] Size [27.5 GB] Uploader [uploaderName] Url [https://onlyencodes.cc/torrents/download/00000]
|
|
expect:
|
|
category: Movie
|
|
releaseTags: Remux
|
|
torrentName: Some Movie 1080p BluRay REMUX AVC TrueHD 7.1-GROUP
|
|
resolution: 1080p
|
|
freeleechPercent: 0%
|
|
internal: "No"
|
|
tags: "No"
|
|
torrentSize: 27.5 GB
|
|
uploader: uploaderName
|
|
baseUrl: https://onlyencodes.cc/
|
|
torrentId: "00000"
|
|
pattern: '.*\[(.*)\].*\[(.*)\].*\[(.*)\].*\[(.*)\].*\[(.*)\].*\[(.*)\].*\[(.*)\].*\[(.*)\].*\[(.*)\].*\[(https?\:\/\/.*?\/).*\/(\d+)\]'
|
|
vars:
|
|
- category
|
|
- releaseTags
|
|
- torrentName
|
|
- resolution
|
|
- freeleechPercent
|
|
- internal
|
|
- tags
|
|
- torrentSize
|
|
- uploader
|
|
- baseUrl
|
|
- torrentId
|
|
|
|
match:
|
|
infourl: "/torrents/{{ .torrentId }}"
|
|
torrenturl: "/torrent/download/{{ .torrentId }}.{{ .rsskey }}"
|