aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-25 17:05:39 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-25 17:05:39 +0700
commitf01df14c4f28959149b025b809b7e06a60231c36 (patch)
tree055478bdae4f3f8c68fabef8235af1f733cdddfc
parent9306b0c8d905f4532bccf53021165be9eaea5678 (diff)
downloadyoutube-dl-f01df14c4f28959149b025b809b7e06a60231c36.tar.xz
[telequebec:emission] Extend _VALID_URL
-rw-r--r--youtube_dl/extractor/telequebec.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/youtube_dl/extractor/telequebec.py b/youtube_dl/extractor/telequebec.py
index c64af6608..6965c127b 100644
--- a/youtube_dl/extractor/telequebec.py
+++ b/youtube_dl/extractor/telequebec.py
@@ -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):