aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2018-01-29 15:31:46 +0100
committerRemita Amine <remitamine@gmail.com>2018-01-29 15:33:24 +0100
commitd2a422f548bd5b7e92406bcd69db800be3de518e (patch)
tree7ef6c998d30182ebef56ff510f105abee241047c /youtube_dl
parentb9d52fb2cacd25df74079dfd8b26d7545ba305f0 (diff)
[cbsinteractive] fix data extraction(closes #15451)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/cbsinteractive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/cbsinteractive.py b/youtube_dl/extractor/cbsinteractive.py
index 681d63e29..6596e98a6 100644
--- a/youtube_dl/extractor/cbsinteractive.py
+++ b/youtube_dl/extractor/cbsinteractive.py
@@ -75,10 +75,10 @@ class CBSInteractiveIE(CBSIE):
webpage = self._download_webpage(url, display_id)
data_json = self._html_search_regex(
- r"data-(?:cnet|zdnet)-video(?:-uvp(?:js)?)?-options='([^']+)'",
+ r"data(?:-(?:cnet|zdnet))?-video(?:-(?:uvp(?:js)?|player))?-options='([^']+)'",
webpage, 'data json')
data = self._parse_json(data_json, display_id)
- vdata = data.get('video') or data['videos'][0]
+ vdata = data.get('video') or (data.get('videos') or data.get('playlist'))[0]
video_id = vdata['mpxRefId']