fix(indexers): LilleSky update irc announce parsing (#1474)

* fix(indexers): LilleSky update irc announce parsing

* fix: tests
This commit is contained in:
ze0s 2024-03-24 12:23:47 +01:00 committed by GitHub
parent f31ec2044e
commit 6c4fd86871
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ irc:
port: 6697 port: 6697
tls: true tls: true
channels: channels:
- "#announce" - "#autodl"
announcers: announcers:
- Lillesky - Lillesky
settings: settings:
@ -48,37 +48,25 @@ irc:
help: NickServ password help: NickServ password
parse: parse:
type: multi type: single
lines: lines:
- tests: - 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: expect:
torrentName: Best.game.ever.3-GROUP category: TV
uploader: Lillesky releaseTags: WEBDL
pattern: '^\[NEW UPLOAD\] (.*) - \[Uploader: (.*) \]' torrentName: That.Show.S07E02.1080p.WEB.H264-GROUP
vars: torrentId: "4993"
- torrentName torrentSize: "1.53 GiB"
- uploader uploader: anon
- tests: pattern: '^- \[Category: (.*)\] \[Type: (.*)\] (.*) \[ID: (\d+) \] \[Size:(.*)\] \[Uploader: (.*) \]'
- line: '[ - iN GAMES] [Type: WINDOWS] - [Size:10.73 GiB]'
expect:
category: GAMES
tags: WINDOWS
torrentSize: "10.73 GiB"
pattern: '^\[ - iN (.*)\] \[Type: (.*)\] - \[Size:(.*)\]'
vars: vars:
- category - category
- tags - releaseTags
- torrentSize - torrentName
- 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 - torrentId
- torrentSize
- uploader
match: match:
infourl: "/torrents/{{ .torrentId }}" infourl: "/torrents/{{ .torrentId }}"