[telequebec:emission] Extend _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Sun, 25 Feb 2018 10:05:39 +0000 (17:05 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 25 Feb 2018 10:05:39 +0000 (17:05 +0700)
youtube_dl/extractor/telequebec.py

index c64af6608d5f1434409aa1113bb7c456a5ff4f86..6965c127b3351122e894608c8a41ac3e79aff58d 100644 (file)
@@ -62,7 +62,14 @@ class TeleQuebecIE(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 = [{
         'url': 'http://lindicemcsween.telequebec.tv/emissions/100430013/des-soins-esthetiques-a-377-d-interets-annuels-ca-vous-tente',
         'info_dict': {
@@ -79,6 +86,12 @@ class TeleQuebecEmissionIE(TeleQuebecBaseIE):
     }, {
         'url': 'http://bancpublic.telequebec.tv/emissions/emission-49/31986/jeunes-meres-sous-pression',
         '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):