aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2020-06-23 15:08:50 +0100
committerxarantolus <xarantolus@protonmail.com>2020-07-28 15:34:30 +0200
commit2bd94127a2319a88b5d98719f5e655682aed8b01 (patch)
tree0559b2dfa3e21475cda8062060613307f958a719
parent7fa0a67cc1e5b5607fb6d30291a549e59e12c9b9 (diff)
downloadhypervideo-pre-2bd94127a2319a88b5d98719f5e655682aed8b01.tar.lz
hypervideo-pre-2bd94127a2319a88b5d98719f5e655682aed8b01.tar.xz
hypervideo-pre-2bd94127a2319a88b5d98719f5e655682aed8b01.zip
[bellmedia] add support for cp24.com clip URLs(closes #25764)
-rw-r--r--youtube_dl/extractor/bellmedia.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/bellmedia.py b/youtube_dl/extractor/bellmedia.py
index 485173774..9f9de96c6 100644
--- a/youtube_dl/extractor/bellmedia.py
+++ b/youtube_dl/extractor/bellmedia.py
@@ -25,8 +25,8 @@ class BellMediaIE(InfoExtractor):
etalk|
marilyn
)\.ca|
- much\.com
- )/.*?(?:\bvid(?:eoid)?=|-vid|~|%7E|/(?:episode)?)(?P<id>[0-9]{6,})'''
+ (?:much|cp24)\.com
+ )/.*?(?:\b(?:vid(?:eoid)?|clipId)=|-vid|~|%7E|/(?:episode)?)(?P<id>[0-9]{6,})'''
_TESTS = [{
'url': 'https://www.bnnbloomberg.ca/video/david-cockfield-s-top-picks~1403070',
'md5': '36d3ef559cfe8af8efe15922cd3ce950',
@@ -62,6 +62,9 @@ class BellMediaIE(InfoExtractor):
}, {
'url': 'http://www.etalk.ca/video?videoid=663455',
'only_matching': True,
+ }, {
+ 'url': 'https://www.cp24.com/video?clipId=1982548',
+ 'only_matching': True,
}]
_DOMAINS = {
'thecomedynetwork': 'comedy',