feat(indexers): add Lillesky (#1439)

* feat(indexers): add Lillesky

* fix: update regex

* fix: update pattern and examples

* fix: line example and test

* fix: regex

* fix: remove optional pred line
This commit is contained in:
ze0s 2024-03-19 18:11:01 +01:00 committed by GitHub
parent d86b2333a7
commit d9fc163655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,85 @@
---
#id: lillesky
name: LilleSky
identifier: lillesky
description: LilleSky is a private torrent tracker for HD MOVIES / TV / 0DAY / GENERAL
language: en-us
urls:
- https://lillesky.org/
privacy: private
protocol: torrent
supports:
- irc
- rss
# source: UNIT3D
settings:
- name: rsskey
type: secret
required: true
label: RSS key
help: "Go to Settings -> RSS Key, copy RSS Key (RID)"
irc:
network: LilleSky
server: irc.lillesky.org
port: 6697
tls: true
channels:
- "#announce"
announcers:
- Lillesky
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
parse:
type: multi
lines:
- tests:
- line: "[NEW UPLOAD] Best.game.ever.3-GROUP - [Uploader: Lillesky ]"
expect:
torrentName: Best.game.ever.3-GROUP
uploader: Lillesky
pattern: '^\[NEW UPLOAD\] (.*) - \[Uploader: (.*) \]'
vars:
- torrentName
- uploader
- tests:
- line: '[ - iN GAMES] [Type: WINDOWS] - [Size:10.73 GiB]'
expect:
category: GAMES
tags: WINDOWS
torrentSize: "10.73 GiB"
pattern: '^\[ - iN (.*)\] \[Type: (.*)\] - \[Size:(.*)\]'
vars:
- category
- tags
- torrentSize
- tests:
- line: 'Get it Here: https://lillesky.org/torrents/252'
expect:
baseUrl: https://lillesky.org/
torrentId: "252"
pattern: '^Get it Here: (https:\/\/.+\/)torrents\/(\d+)'
vars:
- baseUrl
- torrentId
match:
infourl: "/torrents/{{ .torrentId }}"
torrenturl: "/torrent/download/{{ .torrentId }}.{{ .rsskey }}"