fix(indexers): OPS parsing (#832)

* fix/OPS parsing

* replaced special character with .
escaped / in case we ever switch regex flavour
altered a test line to account for empty releaseTags

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
soup 2023-04-13 18:05:35 +02:00 committed by GitHub
parent 5e7acb1996
commit 81092cfe16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,14 +58,12 @@ irc:
type: single type: single
lines: lines:
- test: - test:
- "TORRENT: That Artist - Albuum [2002] [Single] - FLAC / Lossless / WEB - 2000s,house,uk.garage,garage.house - https://orpheus.network/torrents.php?id=000000 / https://orpheus.network/torrents.php?action=download&id=0000000" - "TORRENT: Amarok Quentadharkën CD/FLAC/Lossless folk.rock,progressive.rock https://orpheus.network/torrents.php?id=000000 https://orpheus.network/torrents.php?id=000000&torrentid=000000&action=download"
- "TORRENT: Something [2021] [Album] - FLAC / Lossless / CD - - https://orpheus.network/torrents.php?id=000000 / https://orpheus.network/torrents.php?action=download&id=0000000" - "TORRENT: Signal Lost Simulacrum WEB/FLAC/24bit Lossless 2020s,alternative.rock,freely.available,post.rock,rock https://orpheus.network/torrents.php?id=000000 https://orpheus.network/torrents.php?id=0000000&torrentid=0000000&action=download"
- "TORRENT: Artist 1 & Artist 2 - Best album (subtitle) [2004] [Album] - FLAC / Lossless / Log (100%) / Cue / CD - experimental,ambient,downtempo - https://orpheus.network/torrents.php?id=000000 / https://orpheus.network/torrents.php?action=download&id=0000000" - "TORRENT: Anne Sila Fruit défendu CD/FLAC/Lossless https://orpheus.network/torrents.php?id=000000 https://orpheus.network/torrents.php?id=000000&torrentid=0000000&action=download"
pattern: 'TORRENT: (.* \[(.*?)\] \[(.*?)\] - (.*)) - \s*(.*) - https?:\/\/.* \/ (https?:\/\/.*\/).*id=(\d+)' pattern: 'TORRENT: (.*) . (.*) . (.*) . .* (https:\/\/.*\/).*&torrentid=(.+)&action=download'
vars: vars:
- torrentName - torrentName
- year
- category
- releaseTags - releaseTags
- tags - tags
- baseUrl - baseUrl