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.3 KiB
YAML
81 lines
2.3 KiB
YAML
---
|
||
#id: norbits
|
||
name: Norbits
|
||
identifier: norbits
|
||
description: NorBits is a Norwegian Private site for MOVIES / TV / GENERAL
|
||
language: nb-NO
|
||
urls:
|
||
- https://www.norbits.net/
|
||
privacy: private
|
||
protocol: torrent
|
||
supports:
|
||
- irc
|
||
- rss
|
||
# source: custom
|
||
settings:
|
||
- name: passkey
|
||
type: secret
|
||
required: true
|
||
label: Passkey
|
||
help: "Copy passkey from a download link"
|
||
|
||
irc:
|
||
network: Norbits
|
||
server: irc.norbits.net
|
||
port: 6697
|
||
tls: true
|
||
channels:
|
||
- "#Norbits"
|
||
announcers:
|
||
- NB
|
||
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. Use primary nick or ask staff to allow grouped nick.
|
||
|
||
- name: auth.password
|
||
type: secret
|
||
required: true
|
||
label: NickServ Password
|
||
help: NickServ password
|
||
|
||
parse:
|
||
type: single
|
||
lines:
|
||
- tests:
|
||
- line: 'Ny torrent: Movie.2010.1080p.BluRay.x264.DTS-HD MA 5.1-OMEGA :: Kategori: Filmer/H.264/HD-1080p/i/Encode :: Scene: Nei :: St<53>rrelse: 9.69 GB :: https://norbits.net/details.php?id=000000'
|
||
expect:
|
||
torrentName: Movie.2010.1080p.BluRay.x264.DTS-HD MA 5.1-OMEGA
|
||
category: Filmer/H.264/HD-1080p/i/Encode
|
||
scene: Nei
|
||
torrentSize: 9.69 GB
|
||
baseUrl: https://norbits.net/
|
||
torrentId: "000000"
|
||
- line: 'Ny torrent: Some.TV.Show.s01e01.NORDIC.720p.DSNP.WEBRiP.DD.5.1.h264 :: Kategori: TV/H.264/HD-720p/Encode :: Scene: Nei :: St<53>rrelse: 891.04 MB :: https://norbits.net/details.php?id=000000'
|
||
expect:
|
||
torrentName: Some.TV.Show.s01e01.NORDIC.720p.DSNP.WEBRiP.DD.5.1.h264
|
||
category: TV/H.264/HD-720p/Encode
|
||
scene: Nei
|
||
torrentSize: 891.04 MB
|
||
baseUrl: https://norbits.net/
|
||
torrentId: "000000"
|
||
pattern: 'Ny torrent: (.*) :: Kategori: (.*) :: Scene: (.*) :: St.+rrelse: (.*) :: (https?\:\/\/[^\/]+\/).*[\?]id=(\d+)'
|
||
vars:
|
||
- torrentName
|
||
- category
|
||
- scene
|
||
- torrentSize
|
||
- baseUrl
|
||
- torrentId
|
||
|
||
match:
|
||
infourl: "/details.php?id={{ .torrentId }}"
|
||
torrenturl: "/download.php?id={{ .torrentId }}&passkey={{ .passkey }}"
|