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>
90 lines
2.7 KiB
YAML
90 lines
2.7 KiB
YAML
---
|
|
#id: lst
|
|
name: LST
|
|
identifier: lst
|
|
description: LST is an English private tracker for MOVIES / TV / GENERAL
|
|
language: en-us
|
|
urls:
|
|
- https://lst.gg/
|
|
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 tab, Settings > Security, copy RSS Key (RID)"
|
|
|
|
irc:
|
|
network: LST
|
|
server: irc.lst.gg
|
|
port: 6697
|
|
tls: true
|
|
channels:
|
|
- "#announce"
|
|
announcers:
|
|
- LSTANNOUNCE
|
|
settings:
|
|
- name: nick
|
|
type: text
|
|
required: true
|
|
label: Username
|
|
help: Must be your site username.
|
|
|
|
- name: pass
|
|
type: secret
|
|
required: false
|
|
label: IRC key
|
|
help: Generated IRC key can be found on your profile.
|
|
|
|
parse:
|
|
type: single
|
|
lines:
|
|
- tests:
|
|
- line: Category [Movies] Type [Remux] Name [Movie1995 1080p BluRay REMUX AVC DTS-HD MA 5.1-Ripper] Resolution [1080p] Freeleech [0%] Internal [No] Double Upload [No] Size [37.81 GiB] Uploader [GRiMM] Url [http://lst.gg/torrents/00000]
|
|
expect:
|
|
category: Movies
|
|
releaseTags: Remux
|
|
torrentName: Movie1995 1080p BluRay REMUX AVC DTS-HD MA 5.1-Ripper
|
|
resolution: 1080p
|
|
freeleechPercent: 0%
|
|
internal: "No"
|
|
tags: "No"
|
|
torrentSize: 37.81 GiB
|
|
uploader: GRiMM
|
|
baseUrl: http://lst.gg/
|
|
torrentId: "00000"
|
|
- line: Category [Movies] Type [Remux] Name [Some Random Movie 1985 1080p BluRay REMUX VC-1 DTS-HD MA 5.1-Ripper] Freeleech [0%] Internal [No] Double Upload [No] Size [25.35 GiB] Uploader [GRiMM] Url [http://lst.gg/torrents/00000]
|
|
expect:
|
|
category: Movies
|
|
releaseTags: Remux
|
|
torrentName: Some Random Movie 1985 1080p BluRay REMUX VC-1 DTS-HD MA 5.1-Ripper
|
|
resolution: ""
|
|
freeleechPercent: 0%
|
|
internal: "No"
|
|
tags: "No"
|
|
torrentSize: 25.35 GiB
|
|
uploader: GRiMM
|
|
baseUrl: http://lst.gg/
|
|
torrentId: "00000"
|
|
pattern: 'Category \[(.*)\] Type \[(.*)\] Name \[(.*?)\] ?(?:Resolution \[(.*)\])? Freeleech \[(.*)\] Internal \[(.*)\] Double Upload \[(.*)\] Size \[(.*)\] Uploader \[(.*)\] Url \[(https?://.+/).+/(\d+)\]'
|
|
vars:
|
|
- category
|
|
- releaseTags
|
|
- torrentName
|
|
- resolution
|
|
- freeleechPercent
|
|
- internal
|
|
- tags
|
|
- torrentSize
|
|
- uploader
|
|
- baseUrl
|
|
- torrentId
|
|
|
|
match:
|
|
infourl: "/torrents/{{ .torrentId }}"
|
|
torrenturl: "/torrent/download/{{ .torrentId }}.{{ .rsskey }}"
|