1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 07:07:19 +08:00

[cbc] Support new domain name (closes #20251)

This commit is contained in:
Tyler Szabo 2019-03-15 00:42:03 -07:00
parent 2e27421c70
commit b78ba9bf61

View File

@ -360,7 +360,7 @@ class CBCWatchVideoIE(CBCWatchBaseIE):
class CBCWatchIE(CBCWatchBaseIE):
IE_NAME = 'cbc.ca:watch'
_VALID_URL = r'https?://watch\.cbc\.ca/(?:[^/]+/)+(?P<id>[0-9a-f-]+)'
_VALID_URL = r'https?://(?:gem|watch)\.cbc\.ca/(?:[^/]+/)+(?P<id>[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):