feat(indexers): HD-Only add size (#1621)

* feat(indexers): HD-Only add size

* fix(indexers): test case
This commit is contained in:
ze0s 2024-08-19 14:45:42 +02:00 committed by GitHub
parent de5953a007
commit cb2c62b353
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,7 @@ irc:
type: single type: single
lines: lines:
- tests: - tests:
- line: "Movie Title [2002] [Film] - WEB / AVC / 1080p / VO / stFR / VFI - Movie.Title.2002.1080p.WEB.H264 - https://hd-only.org/torrents.php?torrentid=00000 / https://hd-only.org/torrents.php?action=download&id=00000 - Aventure, Fantastique" - line: "Movie Title [2002] [Film] - WEB / AVC / 1080p / VO / stFR / VFI - Movie.Title.2002.1080p.WEB.H264 - 13.43 GB - https://hd-only.org/torrents.php?torrentid=00000 / https://hd-only.org/torrents.php?action=download&id=00000 - Aventure, Fantastique"
expect: expect:
title: "Movie Title" title: "Movie Title"
year: 2002 year: 2002
@ -67,10 +67,11 @@ irc:
freeleech: "" freeleech: ""
releaseGroup: "" releaseGroup: ""
torrentName: "Movie.Title.2002.1080p.WEB.H264" torrentName: "Movie.Title.2002.1080p.WEB.H264"
torrentSize: 13.43 GB
baseUrl: https://hd-only.org/ baseUrl: https://hd-only.org/
torrentId: "00000" torrentId: "00000"
tags: Aventure, Fantastique tags: Aventure, Fantastique
- line: "Movie Title [2002] [Film] - WEB / AVC / 1080p / VO / stFR / VFI - FL - Movie.Title.2002.1080p.WEB.H264 - https://hd-only.org/torrents.php?torrentid=00000 / https://hd-only.org/torrents.php?action=download&id=00000 - Aventure, Fantastique" - line: "Movie Title [2002] [Film] - WEB / AVC / 1080p / VO / stFR / VFI - FL - Movie.Title.2002.1080p.WEB.H264 - 9.43 GB - https://hd-only.org/torrents.php?torrentid=00000 / https://hd-only.org/torrents.php?action=download&id=00000 - Aventure, Fantastique"
expect: expect:
title: "Movie Title" title: "Movie Title"
year: 2002 year: 2002
@ -79,10 +80,11 @@ irc:
freeleech: "FL" freeleech: "FL"
releaseGroup: "" releaseGroup: ""
torrentName: "Movie.Title.2002.1080p.WEB.H264" torrentName: "Movie.Title.2002.1080p.WEB.H264"
torrentSize: 9.43 GB
baseUrl: https://hd-only.org/ baseUrl: https://hd-only.org/
torrentId: "00000" torrentId: "00000"
tags: Aventure, Fantastique tags: Aventure, Fantastique
- line: "Movie Title [2002] [Film] - WEB / AVC / 1080p / VO / stFR / VFI / Scene - GROUP - Movie.Title.2002.1080p.WEB.H264-GROUP - https://hd-only.org/torrents.php?torrentid=00000 / https://hd-only.org/torrents.php?action=download&id=00000 - Aventure, Fantastique" - line: "Movie Title [2002] [Film] - WEB / AVC / 1080p / VO / stFR / VFI / Scene - GROUP - Movie.Title.2002.1080p.WEB.H264-GROUP - 8.93 GB - https://hd-only.org/torrents.php?torrentid=00000 / https://hd-only.org/torrents.php?action=download&id=00000 - Aventure, Fantastique"
expect: expect:
title: "Movie Title" title: "Movie Title"
year: 2002 year: 2002
@ -91,10 +93,11 @@ irc:
freeleech: "" freeleech: ""
releaseGroup: "GROUP" releaseGroup: "GROUP"
torrentName: "Movie.Title.2002.1080p.WEB.H264-GROUP" torrentName: "Movie.Title.2002.1080p.WEB.H264-GROUP"
torrentSize: 8.93 GB
baseUrl: https://hd-only.org/ baseUrl: https://hd-only.org/
torrentId: "00000" torrentId: "00000"
tags: Aventure, Fantastique tags: Aventure, Fantastique
- line: "Movie Title [2002] [Film] - WEB / AVC / 1080p / VO / stFR / VFI / Scene - FL - GROUP - Movie.Title.2002.1080p.WEB.H264-GROUP - https://hd-only.org/torrents.php?torrentid=00000 / https://hd-only.org/torrents.php?action=download&id=00000 - Aventure, Fantastique" - line: "Movie Title [2002] [Film] - WEB / AVC / 1080p / VO / stFR / VFI / Scene - FL - GROUP - Movie.Title.2002.1080p.WEB.H264-GROUP - 12.23 GB - https://hd-only.org/torrents.php?torrentid=00000 / https://hd-only.org/torrents.php?action=download&id=00000 - Aventure, Fantastique"
expect: expect:
title: "Movie Title" title: "Movie Title"
year: 2002 year: 2002
@ -103,10 +106,11 @@ irc:
freeleech: "FL" freeleech: "FL"
releaseGroup: "GROUP" releaseGroup: "GROUP"
torrentName: "Movie.Title.2002.1080p.WEB.H264-GROUP" torrentName: "Movie.Title.2002.1080p.WEB.H264-GROUP"
torrentSize: 12.23 GB
baseUrl: https://hd-only.org/ baseUrl: https://hd-only.org/
torrentId: "00000" torrentId: "00000"
tags: Aventure, Fantastique tags: Aventure, Fantastique
pattern: '(.*?) \[(\d{4})\] \[(.*?)\] - (.*?)(?: - (FL))?(?: - (.*?))? - (.*?) - (https:\/\/hd-only\.org\/).*torrentid=(\d+).* - (.*)' pattern: '(.*?) \[(\d{4})\] \[(.*?)\] - (.*?)(?: - (FL))?(?: - (.*?))? - (.*?) - (.*?) - (https:\/\/hd-only\.org\/).*torrentid=(\d+).* - (.*)'
vars: vars:
- title - title
- year - year
@ -115,6 +119,7 @@ irc:
- freeleech - freeleech
- releaseGroup - releaseGroup
- torrentName - torrentName
- torrentSize
- baseUrl - baseUrl
- torrentId - torrentId
- tags - tags