autobrr/internal/indexer/definitions/orpheus.yaml
soup 81092cfe16
fix(indexers): OPS parsing (#832)
* fix/OPS parsing

* replaced special character with .
escaped / in case we ever switch regex flavour
altered a test line to account for empty releaseTags

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
2023-04-13 18:05:35 +02:00

74 lines
2.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: orpheus
name: Orpheus
identifier: ops
description: Orpheus (OPS) is a Private Torrent Tracker for MUSIC
language: en-us
urls:
- https://orpheus.network/
privacy: private
protocol: torrent
supports:
- irc
- rss
source: gazelle
settings:
- name: torrent_pass
type: text
required: true
label: Torrent pass
help: Right click DL on a torrent and get the torrent_pass.
irc:
network: Orpheus
server: irc.orpheus.network
port: 7000
tls: true
channels:
- "#announce"
announcers:
- hermes
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. Make sure to group your user and bot.
- name: auth.password
type: secret
required: true
label: NickServ Password
help: NickServ password
- name: invite_command
type: secret
default: "hermes enter #announce USERNAME IRCKEY"
required: true
label: Invite command
help: Invite auth with Hermes. Replace USERNAME and IRCKEY.
parse:
type: single
lines:
- test:
- "TORRENT: Amarok Quentadharkën CD/FLAC/Lossless folk.rock,progressive.rock https://orpheus.network/torrents.php?id=000000 https://orpheus.network/torrents.php?id=000000&torrentid=000000&action=download"
- "TORRENT: Signal Lost Simulacrum WEB/FLAC/24bit Lossless 2020s,alternative.rock,freely.available,post.rock,rock https://orpheus.network/torrents.php?id=000000 https://orpheus.network/torrents.php?id=0000000&torrentid=0000000&action=download"
- "TORRENT: Anne Sila Fruit défendu CD/FLAC/Lossless https://orpheus.network/torrents.php?id=000000 https://orpheus.network/torrents.php?id=000000&torrentid=0000000&action=download"
pattern: 'TORRENT: (.*) . (.*) . (.*) . .* (https:\/\/.*\/).*&torrentid=(.+)&action=download'
vars:
- torrentName
- releaseTags
- tags
- baseUrl
- torrentId
match:
infourl: "/torrents.php?torrentid={{ .torrentId }}"
torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&torrent_pass={{ .torrent_pass }}"