aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshirt-dev <2660574+shirt-dev@users.noreply.github.com>2021-03-04 09:50:07 -0500
committerGitHub <noreply@github.com>2021-03-04 20:20:07 +0530
commit2c736b4f6180a7c0554a5893f16bb65be909e182 (patch)
treec814c19b8bd1c7c6b160906d1919db04b48bd09d
parentc4a508ab31f725545bb1faba10e21bc2a6416421 (diff)
downloadhypervideo-pre-2c736b4f6180a7c0554a5893f16bb65be909e182.tar.lz
hypervideo-pre-2c736b4f6180a7c0554a5893f16bb65be909e182.tar.xz
hypervideo-pre-2c736b4f6180a7c0554a5893f16bb65be909e182.zip
[cbs] Add support for ParamountPlus (#138)
Related: https://github.com/ytdl-org/youtube-dl/issues/28342 Authored-by: shirtjs <2660574+shirtjs@users.noreply.github.com>
-rw-r--r--yt_dlp/extractor/cbs.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/yt_dlp/extractor/cbs.py b/yt_dlp/extractor/cbs.py
index d00053685..503d2e6a6 100644
--- a/yt_dlp/extractor/cbs.py
+++ b/yt_dlp/extractor/cbs.py
@@ -27,10 +27,10 @@ class CBSBaseIE(ThePlatformFeedIE):
class CBSIE(CBSBaseIE):
- _VALID_URL = r'(?:cbs:|https?://(?:www\.)?(?:cbs\.com/shows/[^/]+/video|colbertlateshow\.com/(?:video|podcasts))/)(?P<id>[\w-]+)'
+ _VALID_URL = r'(?:cbs:|https?://(?:www\.)?(?:(?:cbs\.com|paramountplus\.com)/shows/[^/]+/video|colbertlateshow\.com/(?:video|podcasts))/)(?P<id>[\w-]+)'
_TESTS = [{
- 'url': 'http://www.cbs.com/shows/garth-brooks/video/_u7W953k6la293J7EPTd9oHkSPs6Xn6_/connect-chat-feat-garth-brooks/',
+ 'url': 'https://www.cbs.com/shows/garth-brooks/video/_u7W953k6la293J7EPTd9oHkSPs6Xn6_/connect-chat-feat-garth-brooks/',
'info_dict': {
'id': '_u7W953k6la293J7EPTd9oHkSPs6Xn6_',
'ext': 'mp4',
@@ -52,16 +52,19 @@ class CBSIE(CBSBaseIE):
}, {
'url': 'http://www.colbertlateshow.com/podcasts/dYSwjqPs_X1tvbV_P2FcPWRa_qT6akTC/in-the-bad-room-with-stephen/',
'only_matching': True,
+ }, {
+ 'url': 'https://www.paramountplus.com/shows/star-trek-discovery/video/l5ANMH9wM7kxwV1qr4u1xn88XOhYMlZX/star-trek-discovery-the-vulcan-hello/',
+ 'only_matching': True,
}]
def _extract_video_info(self, content_id, site='cbs', mpx_acc=2198311517):
items_data = self._download_xml(
- 'http://can.cbs.com/thunder/player/videoPlayerService.php',
+ 'https://can.cbs.com/thunder/player/videoPlayerService.php',
content_id, query={'partner': site, 'contentId': content_id})
video_data = xpath_element(items_data, './/item')
title = xpath_text(video_data, 'videoTitle', 'title') or xpath_text(video_data, 'videotitle', 'title')
tp_path = 'dJ5BDC/media/guid/%d/%s' % (mpx_acc, content_id)
- tp_release_url = 'http://link.theplatform.com/s/' + tp_path
+ tp_release_url = 'https://link.theplatform.com/s/' + tp_path
asset_types = []
subtitles = {}