mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(indexers): funfile single line parsing (#646)
* fix(indexers): funfile announce line 2 is optional * Change to single line parse for the time being
This commit is contained in:
parent
122803b785
commit
362aa8f9d0
1 changed files with 13 additions and 9 deletions
|
@ -48,11 +48,12 @@ irc:
|
|||
help: NickServ password
|
||||
|
||||
parse:
|
||||
type: multi
|
||||
type: single
|
||||
lines:
|
||||
- test:
|
||||
- "[New Shit] Wiseguy.S04E01.720p.WEB.h264-SKYFiRE [TV/Web-HD] @ https://www.funfile.org/details.php?id=1662804 [2 GB] [FL]"
|
||||
- "[New Shit] DC.-.Wonder.Woman.The.Twelve.Labors.2018.Hybrid.Comic.eBook-BitBook [Ebook] @ https://www.funfile.org/details.php?id=1662668 [206 MB]"
|
||||
- "[New Shit] Sister.Wives.S17.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb [TV/x264-HD] @ https://www.funfile.org/details.php?id=1663540 [49 GB] [FL]"
|
||||
pattern: '\[New Shit\] (.*) \[(.*)\] @ (https?\:\/\/.*\/).*id=(.*?) \[(.*?)\] ?(?:\[(.*?)\])?'
|
||||
vars:
|
||||
- torrentName
|
||||
|
@ -62,15 +63,18 @@ irc:
|
|||
- torrentSize
|
||||
- freeleech
|
||||
|
||||
- test:
|
||||
- "[Scene] Uploaded 1 min and 18 secs after pre"
|
||||
- "[Scene] Uploaded 1 min and 55 secs after pre"
|
||||
pattern: '\[(.*)\] Uploaded (.*) after pre'
|
||||
vars:
|
||||
- origin
|
||||
- preTime
|
||||
# Commented out until we make a better fix for optional multi line
|
||||
#
|
||||
# - test:
|
||||
# - "[Scene] Uploaded 1 min and 18 secs after pre"
|
||||
# - "[Scene] Uploaded 1 min and 55 secs after pre"
|
||||
# pattern: '?(?:\[(.*)\] Uploaded (.*) after pre)?'
|
||||
# vars:
|
||||
# - origin
|
||||
# - preTime
|
||||
|
||||
|
||||
match:
|
||||
torrenturl: "/download.php?{{ .torrentId }}/{{ .passkey }}/{{ .torrentName }}.torrent"
|
||||
encode:
|
||||
- torrentName
|
||||
- torrentName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue