From 6c4fd86871a3df3080694564fb976c8086557164 Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Sun, 24 Mar 2024 12:23:47 +0100 Subject: [PATCH] fix(indexers): LilleSky update irc announce parsing (#1474) * fix(indexers): LilleSky update irc announce parsing * fix: tests --- internal/indexer/definitions/lillesky.yaml | 40 ++++++++-------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/internal/indexer/definitions/lillesky.yaml b/internal/indexer/definitions/lillesky.yaml index 93e0708..9ece6ba 100644 --- a/internal/indexer/definitions/lillesky.yaml +++ b/internal/indexer/definitions/lillesky.yaml @@ -25,7 +25,7 @@ irc: port: 6697 tls: true channels: - - "#announce" + - "#autodl" announcers: - Lillesky settings: @@ -48,37 +48,25 @@ irc: help: NickServ password parse: - type: multi + type: single lines: - tests: - - line: "[NEW UPLOAD] Best.game.ever.3-GROUP - [Uploader: Lillesky ]" + - line: "- [Category: TV] [Type: WEBDL] That.Show.S07E02.1080p.WEB.H264-GROUP [ID: 4993 ] [Size:1.53 GiB] [Uploader: anon ]" 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:(.*)\]' + category: TV + releaseTags: WEBDL + torrentName: That.Show.S07E02.1080p.WEB.H264-GROUP + torrentId: "4993" + torrentSize: "1.53 GiB" + uploader: anon + pattern: '^- \[Category: (.*)\] \[Type: (.*)\] (.*) \[ID: (\d+) \] \[Size:(.*)\] \[Uploader: (.*) \]' 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 + - releaseTags + - torrentName - torrentId + - torrentSize + - uploader match: infourl: "/torrents/{{ .torrentId }}"