[extractor/la7] testing implementation of new _VALID_URLS property

This commit is contained in:
nixxo 2022-12-16 11:18:27 +01:00
parent db96683cf1
commit 74b5d34794
No known key found for this signature in database
GPG Key ID: E0DE62EF9A9BFAB2

View File

@ -12,10 +12,11 @@
class LA7IE(InfoExtractor): class LA7IE(InfoExtractor):
IE_NAME = 'la7.it' IE_NAME = 'la7.it'
_VALID_URL = r'''(?x)https?://(?: _VALID_URLS = [
(?:www\.)?la7\.it/([^/]+)/(?:rivedila7|video|news)/| r'https?://(?:www\.)?la7\.it/[^/]+/(?:rivedila7|video|news)/.+-(?P<id>\d{5,})',
tg\.la7\.it/repliche-tgla7\?id= r'https?://tg\.la7\.it/repliche-tgla7\?id=(?P<id>\d{5,})',
)(?P<id>.+)''' r'https?://tg\.la7\.it(?:/[^/]+)+-(?P<id>\d{5,})'
]
_TESTS = [{ _TESTS = [{
# single quality video # single quality video
@ -44,7 +45,7 @@ class LA7IE(InfoExtractor):
'formats': 'count:8', 'formats': 'count:8',
}, },
}, { }, {
'url': 'http://www.la7.it/omnibus/rivedila7/omnibus-news-02-07-2016-189077', 'url': 'https://tg.la7.it/repliche-tgla7?id=464601',
'only_matching': True, 'only_matching': True,
}] }]
_HOST = 'https://awsvodpkg.iltrovatore.it' _HOST = 'https://awsvodpkg.iltrovatore.it'