mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(indexers): add Nyaa (#1405)
* feat(definitions): add nyaa.yaml * fix(definitions): comment out source * feat(indexers): add NickServ options to nyaa.yaml --------- Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
parent
1f31c9b063
commit
0e2b425a52
1 changed files with 72 additions and 0 deletions
72
internal/indexer/definitions/nyaa.yaml
Normal file
72
internal/indexer/definitions/nyaa.yaml
Normal file
|
@ -0,0 +1,72 @@
|
|||
---
|
||||
#id: nyaa
|
||||
name: Nyaa
|
||||
identifier: nyaa
|
||||
description: Nyaa is an indexer for Anime.
|
||||
language: en-us
|
||||
urls:
|
||||
- https://nyaa.si/
|
||||
privacy: public
|
||||
protocol: torrent
|
||||
supports:
|
||||
- irc
|
||||
#source: custom
|
||||
|
||||
irc:
|
||||
network: Rizon
|
||||
server: irc.rizon.net
|
||||
port: 6697
|
||||
tls: true
|
||||
channels:
|
||||
- "#nyaannounce"
|
||||
announcers:
|
||||
- "NekoNeko"
|
||||
settings:
|
||||
- name: nick
|
||||
type: text
|
||||
required: true
|
||||
label: Nick
|
||||
help: Bot nick. Eg. user_bot
|
||||
|
||||
- name: auth.account
|
||||
type: text
|
||||
required: false
|
||||
label: NickServ Account
|
||||
help: NickServ account. Make sure to group your main user and bot.
|
||||
|
||||
- name: auth.password
|
||||
type: secret
|
||||
required: false
|
||||
label: NickServ Password
|
||||
help: NickServ password
|
||||
|
||||
parse:
|
||||
type: single
|
||||
lines:
|
||||
- tests:
|
||||
- line: '[Live Action - Raw] - 見て、お母さん、私は日本語が書けます! - (220.30MiB) - https://nyaa.si/view/000000/torrent'
|
||||
expect:
|
||||
category: Live Action - Raw
|
||||
torrentName: '見て、お母さん、私は日本語が書けます!'
|
||||
torrentSize: 220.30MiB
|
||||
baseUrl: https://nyaa.si/
|
||||
torrentId: '000000'
|
||||
|
||||
- line: '[Anime - English-translated] - [GROUP] Woah [1080p BD AV1] - (3.60GiB) - https://nyaa.si/view/000001/torrent'
|
||||
expect:
|
||||
category: Anime - English-translated
|
||||
torrentName: '[GROUP] Woah [1080p BD AV1]'
|
||||
torrentSize: 3.60GiB
|
||||
baseUrl: https://nyaa.si/
|
||||
torrentId: '000001'
|
||||
pattern: '\[(.*)\] - (.*) - \((\d+\.?\d*[KMGTP]?iB)\) - (https?:\/\/.*\/)view\/(\d+)\/torrent'
|
||||
vars:
|
||||
- category
|
||||
- torrentName
|
||||
- torrentSize
|
||||
- baseUrl
|
||||
- torrentId
|
||||
|
||||
match:
|
||||
infourl: "/view/{{ .torrentId }}"
|
||||
torrenturl: "/download/{{ .torrentId }}.torrent"
|
Loading…
Add table
Add a link
Reference in a new issue