aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/cbs.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2017-05-24 10:21:33 +0200
committerGitHub <noreply@github.com>2017-05-24 10:21:33 +0200
commit9e35298f973b25c513e30bbc1fe2a05a1c6b7fab (patch)
tree781bc1a7bc07605c67b4fe81e0ba61fd103c56a9 /youtube_dl/extractor/cbs.py
parent0551f1b07b41bf64b4b8c1150abec2903e37a81f (diff)
parent96820c1c6bd2a9613725fc17fd44fd00d3301475 (diff)
Merge pull request #12861 from Tithen-Firion/cbsinteractive-fix
[cbsinteractive] update extractor and test cases
Diffstat (limited to 'youtube_dl/extractor/cbs.py')
-rw-r--r--youtube_dl/extractor/cbs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/cbs.py b/youtube_dl/extractor/cbs.py
index 58f258c54..1268e38ef 100644
--- a/youtube_dl/extractor/cbs.py
+++ b/youtube_dl/extractor/cbs.py
@@ -49,13 +49,13 @@ class CBSIE(CBSBaseIE):
'only_matching': True,
}]
- def _extract_video_info(self, content_id):
+ 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',
- content_id, query={'partner': 'cbs', 'contentId': content_id})
+ content_id, query={'partner': site, 'contentId': content_id})
video_data = xpath_element(items_data, './/item')
title = xpath_text(video_data, 'videoTitle', 'title', True)
- tp_path = 'dJ5BDC/media/guid/2198311517/%s' % content_id
+ tp_path = 'dJ5BDC/media/guid/%d/%s' % (mpx_acc, content_id)
tp_release_url = 'http://link.theplatform.com/s/' + tp_path
asset_types = []