diff options
author | Remita Amine <remitamine@gmail.com> | 2016-12-10 17:36:32 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-12-10 17:36:32 +0100 |
commit | f0b69fa91a00a1efe00e75f8ffaef3d27656f6dc (patch) | |
tree | 8d00af72710f9b6460e6c315b7d3acb0f1ba7eb0 /youtube_dl/extractor/ctvnews.py | |
parent | 8821a718cfeca740d42d109411645427d4f8b523 (diff) |
[ctvnews] relax _VALID_URL regex(closes #11394)
Diffstat (limited to 'youtube_dl/extractor/ctvnews.py')
-rw-r--r-- | youtube_dl/extractor/ctvnews.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ctvnews.py b/youtube_dl/extractor/ctvnews.py index 1023b6130..55a127b76 100644 --- a/youtube_dl/extractor/ctvnews.py +++ b/youtube_dl/extractor/ctvnews.py @@ -8,7 +8,7 @@ from ..utils import orderedSet class CTVNewsIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?ctvnews\.ca/(?:video\?(?:clip|playlist|bin)Id=|.*?)(?P<id>[0-9.]+)' + _VALID_URL = r'https?://(?:.+?\.)?ctvnews\.ca/(?:video\?(?:clip|playlist|bin)Id=|.*?)(?P<id>[0-9.]+)' _TESTS = [{ 'url': 'http://www.ctvnews.ca/video?clipId=901995', 'md5': '10deb320dc0ccb8d01d34d12fc2ea672', @@ -40,6 +40,9 @@ class CTVNewsIE(InfoExtractor): }, { 'url': 'http://www.ctvnews.ca/canadiens-send-p-k-subban-to-nashville-in-blockbuster-trade-1.2967231', 'only_matching': True, + }, { + 'url': 'http://vancouverisland.ctvnews.ca/video?clipId=761241', + 'only_matching': True, }] def _real_extract(self, url): |