[telequebec] Add support for coucou.telequebec.tv (#22482)
authorPatrice Levesque <github-wayne@ptaff.ca>
Fri, 4 Oct 2019 12:14:31 +0000 (08:14 -0400)
committerSergey M <dstftw@gmail.com>
Fri, 4 Oct 2019 12:14:31 +0000 (19:14 +0700)
youtube_dl/extractor/telequebec.py

index 6965c127b3351122e894608c8a41ac3e79aff58d..911385d0182916731baf7e4c7c46907528c77679 100644 (file)
@@ -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):