1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[telequebec:emission] Extend _VALID_URL

This commit is contained in:
Sergey M․ 2018-02-25 17:05:39 +07:00
parent 9306b0c8d9
commit f01df14c4f
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -62,7 +62,14 @@ def _real_extract(self, url):
class TeleQuebecEmissionIE(TeleQuebecBaseIE): class TeleQuebecEmissionIE(TeleQuebecBaseIE):
_VALID_URL = r'https?://[^/]+\.telequebec\.tv/emissions/(?P<id>[^?#&]+)' _VALID_URL = r'''(?x)
https?://
(?:
[^/]+\.telequebec\.tv/emissions/|
(?:www\.)?telequebec\.tv/
)
(?P<id>[^?#&]+)
'''
_TESTS = [{ _TESTS = [{
'url': 'http://lindicemcsween.telequebec.tv/emissions/100430013/des-soins-esthetiques-a-377-d-interets-annuels-ca-vous-tente', 'url': 'http://lindicemcsween.telequebec.tv/emissions/100430013/des-soins-esthetiques-a-377-d-interets-annuels-ca-vous-tente',
'info_dict': { 'info_dict': {
@ -79,6 +86,12 @@ class TeleQuebecEmissionIE(TeleQuebecBaseIE):
}, { }, {
'url': 'http://bancpublic.telequebec.tv/emissions/emission-49/31986/jeunes-meres-sous-pression', 'url': 'http://bancpublic.telequebec.tv/emissions/emission-49/31986/jeunes-meres-sous-pression',
'only_matching': True, 'only_matching': True,
}, {
'url': 'http://www.telequebec.tv/masha-et-michka/epi059masha-et-michka-3-053-078',
'only_matching': True,
}, {
'url': 'http://www.telequebec.tv/documentaire/bebes-sur-mesure/',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):