feat(indexers): revert UHDBits to old announce format (#2100)

* feat(indexers): revert UHDBits regex pattern

* feat(indexers): add more tests

* feat(indexers): capture year and group
This commit is contained in:
martylukyy 2025-06-22 14:24:05 +02:00 committed by GitHub
parent bc1ec844ff
commit 22f1fd53a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,21 +66,47 @@ irc:
type: single
lines:
- tests:
- line: Category [Movie] A movie [1988] A.Movie.1988.Extended.720p.BluRay.x264-GROUP.mkv [720p, Encode, Freeleech, Scene, mkv] Size [4.99 GB] Url [https://uhdbits.org/torrents.php?action=download&id=00000]
- line: 'New Torrent: Final Destination: Bloodlines [2025] - GROUP Type: Movie / 1080p / WEB-DL / Freeleech: 100 Size: 4.28GB - https://uhdbits.org/torrents.php?id=00000 / https://uhdbits.org/torrents.php?action=download&id=00000'
expect:
torrentName: 'Final Destination: Bloodlines'
year: 2025
releaseGroup: GROUP
category: Movie
year: "1988"
torrentName: A.Movie.1988.Extended.720p.BluRay.x264-GROUP.mkv
releaseTags: 720p, Encode, Freeleech, Scene, mkv
torrentSize: 4.99 GB
releaseTags: 1080p / WEB-DL
freeleechPercent: 100
torrentSize: 4.28GB
baseUrl: https://uhdbits.org/
torrentId: "00000"
pattern: 'Category \[(.+)\] .+ \[(\d+)\] (.+) \[(.+)\] Size \[(.+)\] Url \[(https?\:\/\/.+\/).+id=(\d+)\]'
- line: 'New Torrent: Dandadan Season 01 [2024] - GROUP Type: TV / 1080p / Blu-ray / Freeleech: 100 Size: 90.68GB - https://uhdbits.org/torrents.php?id=00000 / https://uhdbits.org/torrents.php?action=download&id=00000'
expect:
torrentName: 'Dandadan Season 01'
year: 2024
releaseGroup: GROUP
category: TV
releaseTags: 1080p / Blu-ray
freeleechPercent: 100
torrentSize: 90.68GB
baseUrl: https://uhdbits.org/
torrentId: "00000"
- line: 'New Torrent: Load (Remastered Deluxe Box Set) [1996] Type: Music / CD / Freeleech: 100 Size: 14.16GB - https://uhdbits.org/torrents.php?id=00000 / https://uhdbits.org/torrents.php?action=download&id=00000'
expect:
torrentName: 'Load (Remastered Deluxe Box Set)'
year: 1996
releaseGroup: ""
category: Music
releaseTags: CD
freeleechPercent: 100
torrentSize: 14.16GB
baseUrl: https://uhdbits.org/
torrentId: "00000"
pattern: 'New Torrent: (.+?) \[(\d{4})\](?: - (.*) )?\s*Type: (.+?) \/ (.*?)[\s\/]+? Freeleech: (.+) Size: (.+) - https?:\/\/.+ \/ (https?:\/\/.+\/).+id=(\d+)'
vars:
- category
- year
- torrentName
- year
- releaseGroup
- category
- releaseTags
- freeleechPercent
- torrentSize
- baseUrl
- torrentId