diff options
author | Patrice Levesque <github-wayne@ptaff.ca> | 2019-10-04 08:14:31 -0400 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2019-10-04 19:14:31 +0700 |
commit | c2915de82e0ee793330d553899347ec54a4b834e (patch) | |
tree | 9b4d0362a2906ec6589e3fe8e0852e18ae5b45a0 | |
parent | 4e72d02f39f0d8e9ae9bbe8233c157bef3b58bdf (diff) |
[telequebec] Add support for coucou.telequebec.tv (#22482)
-rw-r--r-- | youtube_dl/extractor/telequebec.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/youtube_dl/extractor/telequebec.py b/youtube_dl/extractor/telequebec.py index 6965c127b..911385d01 100644 --- a/youtube_dl/extractor/telequebec.py +++ b/youtube_dl/extractor/telequebec.py @@ -22,7 +22,13 @@ class TeleQuebecBaseIE(InfoExtractor): class TeleQuebecIE(TeleQuebecBaseIE): - _VALID_URL = r'https?://zonevideo\.telequebec\.tv/media/(?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', @@ -41,6 +47,9 @@ class TeleQuebecIE(TeleQuebecBaseIE): # no description 'url': 'http://zonevideo.telequebec.tv/media/30261', 'only_matching': True, + }, { + 'url': 'https://coucou.telequebec.tv/videos/41788/idee-de-genie/l-heure-du-bain', + 'only_matching': True, }] def _real_extract(self, url): |