autobrr/internal/indexer/definitions/sugoimusic.yaml
Kuredant 14e12e7bc6
feat(indexers): add SugoiMusic (#1255)
* feat(indexers): add SugoiMusic

Regex tests: https://regex101.com/r/oRumE5/5

* fix(definitions): add tests to sugoimusic

---------

Co-authored-by: ze0s <ze0s@riseup.net>
2023-11-18 16:15:22 +01:00

123 lines
4.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#id: sugoimusic
name: SugoiMusic
identifier: sugoimusic
description: SugoiMusic (SM) is a private torrent tracker for MUSIC
language: en-us
urls:
- https://sugoimusic.me/
privacy: private
protocol: torrent
supports:
- irc
#source: gazelle
settings:
- name: authkey
type: secret
required: true
label: Auth key
help: Right click DL on a torrent and get the authkey.
- name: torrent_pass
type: secret
required: true
label: Torrent pass
help: Right click DL on a torrent and get the torrent_pass.
irc:
network: SugoiMusic
server: irc.sugoimusic.me
port: 6697
tls: true
channels:
- "#sugoi-announce"
announcers:
- Yuki
settings:
- name: nick
type: text
required: true
label: Nick
help: Bot nick. Eg. user-autodl
- name: auth.account
type: text
required: false
label: NickServ Account
help: NickServ account. Make sure to group your user and bot.
- name: auth.password
type: secret
required: false
label: NickServ Password
help: NickServ password
- name: invite_command
type: secret
default: "Yuki enter #sugoi-announce USERNAME IRCKEY"
required: true
label: Invite command
help: Invite auth with Yuki. Replace USERNAME and IRCKEY.
parse:
type: single
lines:
- tests:
- line: "[Album] Artist Album Name [FLAC / 2017 / catnumber] - https://sugoimusic.me/torrents.php?id=000010 / https://sugoimusic.me/torrents.php?action=download&id=000011 - japanese,pop,female.vocalist Uploaded by: Uploader 1"
expect:
category: Album
torrentName: Artist Album Name [FLAC / 2017 / catnumber]
releaseTags: FLAC / 2017 / catnumber
year: 2017
baseUrl: https://sugoimusic.me/
groupId: "000010"
torrentId: "000011"
tags: japanese,pop,female.vocalist
uploader: Uploader 1
- line: "[Single] Artist Album Name [MP3] - https://sugoimusic.me/torrents.php?id=000020 / https://sugoimusic.me/torrents.php?action=download&id=000021 - japanese,pop,dance Uploaded by: Uploader 2"
expect:
category: Single
torrentName: Artist Album Name [MP3]
releaseTags: MP3
year:
baseUrl: https://sugoimusic.me/
groupId: "000020"
torrentId: "000021"
tags: japanese,pop,dance
uploader: Uploader 2
- line: "[Album] Artist Album Name [FLAC / 2023 / (+2) / catnumber] - https://sugoimusic.me/torrents.php?id=000030 / https://sugoimusic.me/torrents.php?action=download&id=000031 - japanese Uploaded by: Uploader 3"
expect:
category: Album
torrentName: Artist Album Name [FLAC / 2023 / (+2) / catnumber]
releaseTags: FLAC / 2023 / (+2) / catnumber
year: 2023
baseUrl: https://sugoimusic.me/
groupId: "000030"
torrentId: "000031"
tags: japanese
uploader: Uploader 3
- line: "[TV Music] TV Show Title [TS / MPEG-2 / 1920x1080 / AAC / Japanese / NoSubs] - https://sugoimusic.me/torrents.php?id=000040 / https://sugoimusic.me/torrents.php?action=download&id=000041 - japanese,live Uploaded by: Uploader 4"
expect:
category: TV Music
torrentName: TV Show Title [TS / MPEG-2 / 1920x1080 / AAC / Japanese / NoSubs]
releaseTags: TS / MPEG-2 / 1920x1080 / AAC / Japanese / NoSubs
year:
baseUrl: https://sugoimusic.me/
groupId: "000040"
torrentId: "000041"
tags: japanese,live
uploader: Uploader 4
pattern: '\[(.*)\] (.*? .+? \[((?:[^/]+)?(?:(?: \/ )(\d{4}))?(?: \/ [^/]+)*)\]) - (https?://.+/).+id=(\d+) \/ https?://.+action=download&id=(\d+) - (.*) Uploaded by: (.*)'
vars:
- category
- torrentName
- releaseTags
- year
- baseUrl
- groupId
- torrentId
- tags
- uploader
match:
infourl: "/torrents.php?id={{ .groupId }}&torrentid={{ .torrentId }}"
torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&authkey={{ .authkey }}&torrent_pass={{ .torrent_pass }}"