fix(indexers): STC parse resolution (#1489)

* fix(indexers): add resolution var for STC
This commit is contained in:
martylukyy 2024-04-05 06:58:20 +02:00 committed by GitHub
parent facb5b25e5
commit f26c33a961
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,22 +51,24 @@ irc:
type: single type: single
lines: lines:
- tests: - tests:
- line: Category [TV Show] Type [WEB-DL] Name [The best show S24E10 Jumped In 1080p AMZN WEB-DL DD+ 5.1 H.264-NTb] Freeleech [0%] Double Upload [No] Size [2.9 GB] Uploader [userone] Url [https://skipthecommericals.xyz/torrent/download/00000] - line: Category [TV Show] Type [WEB-DL] Name [Some Show S35E11 1080p DSNP WEB-DL DD+ 5.1 H.264-GROUP] Resolution [1080p] Freeleech [0%] Double Upload [No] Size [709.11 MB] Uploader [Seeder] Url [https://skipthecommericals.xyz/torrent/download/00000]
expect: expect:
category: TV Show category: TV Show
releaseTags: WEB-DL releaseTags: WEB-DL
torrentName: The best show S24E10 Jumped In 1080p AMZN WEB-DL DD+ 5.1 H.264-NTb resolution: 1080p
torrentName: Some Show S35E11 1080p DSNP WEB-DL DD+ 5.1 H.264-GROUP
freeleechPercent: 0% freeleechPercent: 0%
tags: "No" tags: "No"
torrentSize: 2.9 GB torrentSize: 709.11 MB
uploader: userone uploader: Seeder
baseUrl: https://skipthecommericals.xyz/ baseUrl: https://skipthecommericals.xyz/
torrentId: "00000" torrentId: "00000"
pattern: 'Category \[(.+)\] Type \[(.+)\] Name \[(.+?)\] Freeleech \[(.+)\] Double Upload \[(.+)\] Size \[(.+)\] Uploader \[(.+)\] Url \[(https?\:\/\/.+\/).+\/.+\/(\d+)\]' pattern: 'Category \[(.+)\] Type \[(.+)\] Name \[(.+?)\] Resolution \[(.+)\] Freeleech \[(.+)\] Double Upload \[(.+)\] Size \[(.+)\] Uploader \[(.+)\] Url \[(https?\:\/\/.+\/).+\/.+\/(\d+)\]'
vars: vars:
- category - category
- releaseTags - releaseTags
- torrentName - torrentName
- resolution
- freeleechPercent - freeleechPercent
- tags - tags
- torrentSize - torrentSize