feat(indexers): add KeepFRDS (#1484)

* feat(indexers): add KeepFRDS

* fix(indexers): adapt regex pattern to account for ` - ` in release names
fix(indexers): indentation

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
KyokoMiki 2024-04-03 18:45:48 +08:00 committed by GitHub
parent 83f6d7864d
commit 7cd5d99ae6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,85 @@
---
#id: keepfrds
name: KeepFRDS
identifier: keepfrds
description: PT@KEEPFRDS is a CHINESE Private Torrent Tracker for HD MOVIES / TV
language: zh-cn
urls:
- https://pt.keepfrds.com/
privacy: private
protocol: torrent
supports:
- irc
- rss
# source: NexusPHP
settings:
- name: passkey
type: secret
required: true
label: Passkey
help: "Your passkey."
irc:
network: P2P-Network
server: irc.p2p-network.net
port: 6697
tls: true
channels:
- "#frds.announce"
announcers:
- mmt
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 user and bot.
- name: auth.password
type: secret
required: false
label: NickServ Password
help: NickServ password
- name: invite_command
type: secret
default: "mmt !invite IRCKEY"
required: true
label: Invite command
help: Invite auth with the key from https://pt.keepfrds.com/irc.php. Replace IRCKEY.
parse:
type: single
lines:
- tests:
- line: Blu-ray / x265 10bit / 1080p - Trick The Movie 2002 1080p BluRay x265 10bit FLAC MNHD-FRDS - 8.4 GiB - https://pt.keepfrds.com/details.php?id=0000000
expect:
releaseTags: Blu-ray / x265 10bit / 1080p
torrentName: Trick The Movie 2002 1080p BluRay x265 10bit FLAC MNHD-FRDS
torrentSize: "8.4 GiB"
baseUrl: https://pt.keepfrds.com/
torrentId: "0000000"
- line: Blu-ray / x265 10bit / 1080p - Trick - With Hyphen 2002 1080p BluRay x265 10bit FLAC MNHD-FRDS - 8.4 GiB - https://pt.keepfrds.com/details.php?id=0000000
expect:
releaseTags: Blu-ray / x265 10bit / 1080p
torrentName: Trick - With Hyphen 2002 1080p BluRay x265 10bit FLAC MNHD-FRDS
torrentSize: "8.4 GiB"
baseUrl: https://pt.keepfrds.com/
torrentId: "0000000"
pattern: '(.*?) - (.*) - (.*) - (https?:\/\/.*\/).*?id=(\d+)'
vars:
- releaseTags
- torrentName
- torrentSize
- baseUrl
- torrentId
match:
infourl: "/details.php?id={{ .torrentId }}"
torrenturl: "/download.php?id={{ .torrentId }}&passkey={{ .passkey }}"