mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(indexers): LilleSky update irc announce parsing (#1474)
* fix(indexers): LilleSky update irc announce parsing * fix: tests
This commit is contained in:
parent
f31ec2044e
commit
6c4fd86871
1 changed files with 14 additions and 26 deletions
|
@ -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 }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue