mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00

* feat(indexers): optional baseurl override * feat(indexers): update baseUrl parsing * refactor(indexers): BREAKING move parse to IRC struct * Move Parse as part of IRC struct from Indexer * Updated definitions * Build torrentUrl in stages * Use new url.JoinPath to build torrentUrl * Update tests * refactor(indexers): select option obj * refactor(indexers): make backwards compatible
66 lines
1.7 KiB
YAML
66 lines
1.7 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:
|
||
- test:
|
||
- "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"
|
||
- "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"
|
||
pattern: 'Ny torrent: (.*) :: Kategori: (.*) :: Scene: (.*) :: St.+rrelse: (.*) :: (https?\:\/\/[^\/]+\/).*[\?]id=(\d+)'
|
||
vars:
|
||
- torrentName
|
||
- category
|
||
- scene
|
||
- torrentSize
|
||
- baseUrl
|
||
- torrentId
|
||
|
||
match:
|
||
torrenturl: "/download.php?id={{ .torrentId }}&passkey={{ .passkey }}"
|