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

Update telequebec.py

This commit is contained in:
Sergey M 2019-10-04 19:11:46 +07:00 committed by GitHub
parent 3e88025e7b
commit e372f61658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,13 @@ class TeleQuebecBaseIE(InfoExtractor):
class TeleQuebecIE(TeleQuebecBaseIE):
_VALID_URL = r'https?://(?:coucou|zonevideo)\.telequebec\.tv/(?:media|videos)/(?P<id>\d+)'
_VALID_URL = r'''(?x)
https?://
(?:
zonevideo\.telequebec\.tv/media|
coucou\.telequebec\.tv/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',
@ -42,19 +48,8 @@ class TeleQuebecIE(TeleQuebecBaseIE):
'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,
},
'only_matching': True,
}]
def _real_extract(self, url):