mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(definitions): add expectations for test lines (#1257)
* factor out test helpers * refactor, add tests for animebytes * revert test refactor * better name * change format, migrate some examples * migrated remaining test cases * add comment about `Test` vs `Tests` * refactor * reorder expectations to match vars * generate * turn on strict unmarshalling, remove old `Test` from schema * start modifying actual definitions * done with the As * Bs * C, D * E, F * G, H, I, ... L * M, N * O, P * R * bonus error. without this, pattern/vars disagreement can panic. * S * T, U * X.. Now we know our ABCs next time won't you sing with meeeee * fix another test * another driveby change * be less strict parsing custom definitions * fix(definitions): load custom definitions --------- Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
parent
e842a7bd42
commit
fef0da5711
83 changed files with 1887 additions and 565 deletions
|
@ -10,7 +10,7 @@ protocol: torrent
|
|||
supports:
|
||||
- irc
|
||||
- rss
|
||||
source: custom
|
||||
# source: custom
|
||||
settings:
|
||||
- name: passkey
|
||||
type: secret
|
||||
|
@ -49,11 +49,43 @@ irc:
|
|||
parse:
|
||||
type: single
|
||||
lines:
|
||||
- test:
|
||||
- "Vidéos | La Brea S02E08 MULTi 1080p WEB x264-FW | 1.27 GiB | 1080p/i <https://sharewood.tv/torrents/la-brea-s02e08-multi-1080p-web-x264-fw.66870>"
|
||||
- "Vidéos | Le Griffon S01 FRENCH 2160p WEBRip AMZ HDR x265 10bits EAC3 5.1-Amen | 11.08 GiB | 2160p <https://sharewood.tv/torrents/le-griffon-s01-french-2160p-webrip-amz-hdr-x265-10bits-eac3-51-amen.66881>"
|
||||
- "Audios | Molly Hatchet - Southern Rock Masters (2008) - Flac 16-44 | 402.07 MiB | <https://sharewood.tv/torrents/molly-hatchet-southern-rock-masters-2008-flac-16-44.66882>"
|
||||
- "Ebooks | Edgar Allan Poe - Nouvelles integrales - 2018-2019 - FRENCH - EPUB | 2.39 MiB | <https://sharewood.tv/torrents/edgar-allan-poe-nouvelles-integrales-2018-2019-french-epub.66884>"
|
||||
- tests:
|
||||
- line: Vidéos | La Brea S02E08 MULTi 1080p WEB x264-FW | 1.27 GiB | 1080p/i <https://sharewood.tv/torrents/la-brea-s02e08-multi-1080p-web-x264-fw.66870>
|
||||
expect:
|
||||
category: Vidéos
|
||||
torrentName: La Brea S02E08 MULTi 1080p WEB x264-FW
|
||||
torrentSize: 1.27 GiB
|
||||
resolution: 1080p/i
|
||||
baseUrl: https://sharewood.tv/torrents/
|
||||
torrentSlug: la-brea-s02e08-multi-1080p-web-x264-fw
|
||||
torrentId: "66870"
|
||||
- line: Vidéos | Le Griffon S01 FRENCH 2160p WEBRip AMZ HDR x265 10bits EAC3 5.1-Amen | 11.08 GiB | 2160p <https://sharewood.tv/torrents/le-griffon-s01-french-2160p-webrip-amz-hdr-x265-10bits-eac3-51-amen.66881>
|
||||
expect:
|
||||
category: Vidéos
|
||||
torrentName: Le Griffon S01 FRENCH 2160p WEBRip AMZ HDR x265 10bits EAC3 5.1-Amen
|
||||
torrentSize: 11.08 GiB
|
||||
resolution: 2160p
|
||||
baseUrl: https://sharewood.tv/torrents/
|
||||
torrentSlug: le-griffon-s01-french-2160p-webrip-amz-hdr-x265-10bits-eac3-51-amen
|
||||
torrentId: "66881"
|
||||
- line: Audios | Molly Hatchet - Southern Rock Masters (2008) - Flac 16-44 | 402.07 MiB | <https://sharewood.tv/torrents/molly-hatchet-southern-rock-masters-2008-flac-16-44.66882>
|
||||
expect:
|
||||
category: Audios
|
||||
torrentName: Molly Hatchet - Southern Rock Masters (2008) - Flac 16-44
|
||||
torrentSize: 402.07 MiB
|
||||
resolution: ""
|
||||
baseUrl: https://sharewood.tv/torrents/
|
||||
torrentSlug: molly-hatchet-southern-rock-masters-2008-flac-16-44
|
||||
torrentId: "66882"
|
||||
- line: Ebooks | Edgar Allan Poe - Nouvelles integrales - 2018-2019 - FRENCH - EPUB | 2.39 MiB | <https://sharewood.tv/torrents/edgar-allan-poe-nouvelles-integrales-2018-2019-french-epub.66884>
|
||||
expect:
|
||||
category: Ebooks
|
||||
torrentName: Edgar Allan Poe - Nouvelles integrales - 2018-2019 - FRENCH - EPUB
|
||||
torrentSize: 2.39 MiB
|
||||
resolution: ""
|
||||
baseUrl: https://sharewood.tv/torrents/
|
||||
torrentSlug: edgar-allan-poe-nouvelles-integrales-2018-2019-french-epub
|
||||
torrentId: "66884"
|
||||
pattern: '(.+) \| (.+) \| (.+) \| (.*?) ?<(https?:\/\/.+\/)(.+)\.(\d+)>'
|
||||
vars:
|
||||
- category
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue