projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Fix extraction with --youtube-skip-dash-manifest enabled (closes #14037)
[youtube-dl]
/
youtube_dl
/
extractor
/
cbs.py
diff --git
a/youtube_dl/extractor/cbs.py
b/youtube_dl/extractor/cbs.py
index 58f258c54b059b09888cf0e26a4718a69c704faa..1268e38ef3c266bd5f4fac39b961f4788150ba71 100644
(file)
--- a/
youtube_dl/extractor/cbs.py
+++ b/
youtube_dl/extractor/cbs.py
@@
-49,13
+49,13
@@
class CBSIE(CBSBaseIE):
'only_matching': True,
}]
'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',
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)
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 = []
tp_release_url = 'http://link.theplatform.com/s/' + tp_path
asset_types = []