1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-09 22:17:15 +08:00

[telequebec] Support coucou subdomain URLs

The zonevideo.telequebec.tv code works on coucou.telequebec.tv, so just
ensure those coucou URLs are recognized.
This commit is contained in:
Wayne A. Ptaff 2019-09-22 09:35:09 -04:00
parent 326ae4ff96
commit 3e88025e7b

View File

@ -22,7 +22,7 @@ class TeleQuebecBaseIE(InfoExtractor):
class TeleQuebecIE(TeleQuebecBaseIE):
_VALID_URL = r'https?://zonevideo\.telequebec\.tv/media/(?P<id>\d+)'
_VALID_URL = r'https?://(?:coucou|zonevideo)\.telequebec\.tv/(?:media|videos)/(?P<id>\d+)'
_TESTS = [{
# available till 01.01.2023
'url': 'http://zonevideo.telequebec.tv/media/37578/un-petit-choc-et-puis-repart/un-chef-a-la-cabane',
@ -41,6 +41,20 @@ class TeleQuebecIE(TeleQuebecBaseIE):
# no description
'url': 'http://zonevideo.telequebec.tv/media/30261',
'only_matching': True,
}, {
# coucou variant
'url': 'https://coucou.telequebec.tv/videos/41788/idee-de-genie/l-heure-du-bain',
'info_dict': {
'id': '350796a9f4ca4010a8fd51e418dc3449',
'ext': 'mp4',
'title': 'L\'heure du bain',
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
'upload_date': '20181108',
'timestamp': 1541705154,
},
'params': {
'skip_download': True,
},
}]
def _real_extract(self, url):