mirror of
https://github.com/idanoo/autobrr
synced 2025-07-24 01:09:13 +00:00
feat(indexers): add support for optional baseurl override (#551)
* feat(indexers): optional baseurl override * feat(indexers): update baseUrl parsing * refactor(indexers): BREAKING move parse to IRC struct * Move Parse as part of IRC struct from Indexer * Updated definitions * Build torrentUrl in stages * Use new url.JoinPath to build torrentUrl * Update tests * refactor(indexers): select option obj * refactor(indexers): make backwards compatible
This commit is contained in:
parent
301180e55b
commit
25a165b764
66 changed files with 1533 additions and 1211 deletions
|
@ -5,7 +5,7 @@ identifier: romanianmetaltorrents
|
|||
description: Romanian Metal Torrents (RMT) is a private torrent tracker for METAL MUSIC.
|
||||
language: en-us
|
||||
urls:
|
||||
- https://metal.iplay.ro
|
||||
- https://metal.iplay.ro/
|
||||
privacy: private
|
||||
protocol: torrent
|
||||
supports:
|
||||
|
@ -47,20 +47,20 @@ irc:
|
|||
label: NickServ Password
|
||||
help: NickServ password
|
||||
|
||||
parse:
|
||||
type: single
|
||||
lines:
|
||||
- test:
|
||||
- "New torrent: Artist-Album-2022-GROUP -- [Black Metal] -- https://metal.iplay.ro/details.php?id=000000 -- by Anonymous"
|
||||
- "New torrent: Artist-Album -[WEB | FLAC]- RMT -- [FreeLeech!] -- [-Discography/Album Pack] -- https://metal.iplay.ro/details.php?id=000000 -- by Anonymous"
|
||||
pattern: 'New Torrent: (.*?) (?:-- \[(.*)!\] )?-- \[(.*)] -- (https?://.+/).*id=(.*) -- by (.*)'
|
||||
vars:
|
||||
- torrentName
|
||||
- freeleech
|
||||
- category
|
||||
- baseUrl
|
||||
- torrentId
|
||||
- uploader
|
||||
parse:
|
||||
type: single
|
||||
lines:
|
||||
- test:
|
||||
- "New torrent: Artist-Album-2022-GROUP -- [Black Metal] -- https://metal.iplay.ro/details.php?id=000000 -- by Anonymous"
|
||||
- "New torrent: Artist-Album -[WEB | FLAC]- RMT -- [FreeLeech!] -- [-Discography/Album Pack] -- https://metal.iplay.ro/details.php?id=000000 -- by Anonymous"
|
||||
pattern: 'New Torrent: (.*?) (?:-- \[(.*)!\] )?-- \[(.*)] -- (https?://.+/).*id=(.*) -- by (.*)'
|
||||
vars:
|
||||
- torrentName
|
||||
- freeleech
|
||||
- category
|
||||
- baseUrl
|
||||
- torrentId
|
||||
- uploader
|
||||
|
||||
match:
|
||||
torrenturl: "{{ .baseUrl }}/download2.php?id={{ .torrentId }}&passkey={{ .passkey }}"
|
||||
match:
|
||||
torrenturl: "/download2.php?id={{ .torrentId }}&passkey={{ .passkey }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue