From b78ba9bf6154bc086c99caca90e96a6b55f8e712 Mon Sep 17 00:00:00 2001 From: Tyler Szabo Date: Fri, 15 Mar 2019 00:42:03 -0700 Subject: [PATCH] [cbc] Support new domain name (closes #20251) --- youtube_dl/extractor/cbc.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/cbc.py b/youtube_dl/extractor/cbc.py index 43f95c739..c6c7fa3f7 100644 --- a/youtube_dl/extractor/cbc.py +++ b/youtube_dl/extractor/cbc.py @@ -360,7 +360,7 @@ class CBCWatchVideoIE(CBCWatchBaseIE): class CBCWatchIE(CBCWatchBaseIE): IE_NAME = 'cbc.ca:watch' - _VALID_URL = r'https?://watch\.cbc\.ca/(?:[^/]+/)+(?P[0-9a-f-]+)' + _VALID_URL = r'https?://(?:gem|watch)\.cbc\.ca/(?:[^/]+/)+(?P[0-9a-f-]+)' _TESTS = [{ # geo-restricted to Canada, bypassable 'url': 'http://watch.cbc.ca/doc-zone/season-6/customer-disservice/38e815a-009e3ab12e4', @@ -386,6 +386,23 @@ class CBCWatchIE(CBCWatchBaseIE): 'description': 'Arthur, the sweetest 8-year-old aardvark, and his pals solve all kinds of problems with humour, kindness and teamwork.', }, 'playlist_mincount': 30, + }, { + # geo-restricted to Canada, bypassable + 'url': 'https://gem.cbc.ca/media/this-hour-has-22-minutes/season-26/episode-20/38e815a-0108c6c6a42', + 'info_dict': { + 'id': 'abad9fcd-d341-4717-b723-45bd05979400', + 'ext': 'mp4', + 'title': 'Border Bud - (March 11, 2019)', + 'description': 'md5:670513924b0ada950b3f5975af97fc58', + 'timestamp': 1552348800, + 'upload_date': '20190312', + 'age_limit': 10, + }, + 'params': { + # m3u8 download + 'skip_download': True, + 'format': 'bestvideo', + }, }] def _real_extract(self, url):