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>
106 lines
3.5 KiB
YAML
106 lines
3.5 KiB
YAML
---
|
|
name: Hebits
|
|
identifier: hebits
|
|
description: Hebits is a private Israeli tracker
|
|
language: he-il
|
|
urls:
|
|
- https://hebits.net/
|
|
privacy: private
|
|
protocol: torrent
|
|
supports:
|
|
- irc
|
|
# source: gazelle
|
|
settings:
|
|
- name: passkey
|
|
type: secret
|
|
required: true
|
|
label: PassKey
|
|
help: Right click download on a torrent and get the passkey.
|
|
|
|
- name: authkey
|
|
type: secret
|
|
required: true
|
|
label: Auth key
|
|
help: Right click download on a torrent and get the authkey.
|
|
|
|
irc:
|
|
network: Hebits
|
|
server: irc.hebits.net
|
|
port: 6697
|
|
tls: true
|
|
channels:
|
|
- "#Announce"
|
|
announcers:
|
|
- HeBoT
|
|
settings:
|
|
- name: nick
|
|
type: text
|
|
required: true
|
|
label: Nick
|
|
help: "Bot nick. Make sure you follow the naming scheme: username|bot"
|
|
|
|
- name: auth.account
|
|
type: text
|
|
required: true
|
|
label: NickServ Account
|
|
help: NickServ account. Make sure to group your main user and bot.
|
|
|
|
- name: auth.password
|
|
type: secret
|
|
required: true
|
|
label: NickServ Password
|
|
help: NickServ password
|
|
|
|
- name: invite_command
|
|
type: secret
|
|
default: "HeBoT !invite IRCKEY"
|
|
required: true
|
|
label: Invite command
|
|
help: "Replace IRCKEY with: Edit Profile -> Access Settings -> IRC Key"
|
|
|
|
parse:
|
|
type: multi
|
|
lines:
|
|
- tests:
|
|
- line: 'New: (מה שקורה בצללים - עונה 4, פרק 3 / What We Do in the Shadows - S04E03 *היידפנישן*) Category: סדרות - HD Size: 825.43 MiB Seeders: 0 Leechers: 0'
|
|
expect:
|
|
category: סדרות - HD
|
|
torrentSize: 825.43 MiB
|
|
- line: 'New: (לגו מלחמת הכוכבים: חופשת קיץ / LEGO Star Wars Summer Vacation *היידפנישן*) Category: סרטים - HD Size: 1.02 GiB Seeders: 0 Leechers: 0'
|
|
expect:
|
|
category: סרטים - HD
|
|
torrentSize: 1.02 GiB
|
|
- line: 'New: (תמונות מחיי נישואין - עונה 1 / Scenes from a Marriage (US) - S01 *היידפנישן מלא*) Category: סדרות - HD מלא Size: 18.61 GiB Seeders: 0 Leechers: 0'
|
|
expect:
|
|
category: סדרות - HD מלא
|
|
torrentSize: 18.61 GiB
|
|
pattern: '^New: .* Category: (.*) Size: (.*) Seeders: .+ Leechers: .+'
|
|
vars:
|
|
- category
|
|
- torrentSize
|
|
- tests:
|
|
- line: 'Link: https://hebits.net/torrents.php?torrentid=80081'
|
|
expect:
|
|
baseUrl: https://hebits.net/
|
|
torrentId: "80081"
|
|
pattern: '^Link: (https:\/\/.*\/).*torrentid=(\d+)'
|
|
vars:
|
|
- baseUrl
|
|
- torrentId
|
|
- tests:
|
|
- line: 'Release: What.We.Do.in.the.Shadows.S04E03.The.Grand.Opening.720p.AMZN.WEB.DL.DDP5.1.H.264-FLUX'
|
|
expect:
|
|
torrentName: What.We.Do.in.the.Shadows.S04E03.The.Grand.Opening.720p.AMZN.WEB.DL.DDP5.1.H.264-FLUX
|
|
- line: 'Release: LEGO.Star.Wars.Summer.Vacation.2022.720p.WEB-DL.H.264.HebDub-iSrael'
|
|
expect:
|
|
torrentName: LEGO.Star.Wars.Summer.Vacation.2022.720p.WEB-DL.H.264.HebDub-iSrael
|
|
- line: 'Release: Scenes.From.a.Marriage.US.S01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX'
|
|
expect:
|
|
torrentName: Scenes.From.a.Marriage.US.S01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX
|
|
pattern: "^Release: (.*)"
|
|
vars:
|
|
- torrentName
|
|
|
|
match:
|
|
infourl: "/torrents.php?torrentid={{ .torrentId }}"
|
|
torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&authkey={{ .authkey }}&torrent_pass={{ .passkey }}"
|