From 44dfae810017086f37e95a892b22696c5a409deb Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Thu, 11 Aug 2022 16:52:42 +0200 Subject: [PATCH] feat(indexers): nbl set tls inv cmd and improve parsing (#403) * fix(indexers): nbl set tls default true * feat(indexers): nbl add invite cmd and improve parse * feat(indexers): improve parsing --- internal/indexer/definitions/nebulance.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/internal/indexer/definitions/nebulance.yaml b/internal/indexer/definitions/nebulance.yaml index 3e74b8d..60acf82 100644 --- a/internal/indexer/definitions/nebulance.yaml +++ b/internal/indexer/definitions/nebulance.yaml @@ -26,6 +26,7 @@ irc: network: Nebulance server: irc.nebulance.cc port: 6697 + tls: true channels: - "#nbl-announce" announcers: @@ -35,24 +36,34 @@ irc: type: text required: true label: NickServ Account - help: NickServ account. Make sure to group your user and bot. Eg. user|bot + help: NickServ account. Make sure to group your user and bot. Like user|bot + - name: nickserv.password type: secret required: true label: NickServ Password help: NickServ password + - name: invite_command + type: secret + default: "Muffit bot #nbl-announce USERNAME IRCKey" + required: true + label: Invite command + help: Invite auth with Muffit. + parse: type: single lines: - test: - "[Episodes] The Show - S02E08 [WebRip / x264 / MKV / 720p / HD / VLAD / The.Show.S02E08.Episode.Name.720p.ANPL.WEBRip.AAC2.0.x264-GROUP.mkv] [702.00 MB - Uploader: UPLOADER] - http://nebulance.io/torrents.php?id=000 [Tags: comedy,subtitles,cbs]" - "[Seasons] Other Show - S10 [HDTV / x264 / MKV / MP4 / 480p / SD / BTN / Other.Show.S10.HDTV.x264-GROUP] [5.27 GB - Uploader: UPLOADER] - http://nebulance.io/torrents.php?id=0000 [Tags: comedy,subtitles,cbs]" - pattern: '\[(.*?)\] (.*?) \[(.*?)\] \[(.*?) - Uploader: (.*?)\] - (https?:\/\/.*)id=(\d+) \[Tags: (.*)\]' + - "[Episode] Late Night with Show Host - 2021-01-20 [WebDl / h264 / MKV / 1080p / HD / Scene / GROUP / talk.show.2021.01.20.famous.person.1080p.web.h264-group.mkv] [2.22 GB - Uploader: Uploader1] - http://nebulance.io/torrents.php?id=000000 [Tags: episode,comedy,talk.show,nbc,autofill,subtitles,webdl,h264,mkv,1080p,hd,scene,group.release]" + pattern: '\[(.*?)\] (.*?) - (?:S.*|\d{4}-\d{2}-\d{2}) \[(.*) \/ (.*)\] \[(.*?) - Uploader: (.*?)\] - (https?:\/\/.*)id=(\d+) \[Tags: (.*)\]' vars: - category - - torrentName + - title - releaseTags + - torrentName - torrentSize - uploader - baseUrl