aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/cbsnews.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-11-12 21:02:56 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-11-12 21:02:56 +0100
commit1ebb4717dfc67890c66abd4274e201cafda48e79 (patch)
tree2c4d779a9d27ead86db385714e0c723620cfc87a /youtube_dl/extractor/cbsnews.py
parentcf5881fc4defe3902367fc02b8eb39d912572d5a (diff)
[cbsnews] Fix construction of 'play_path' in some videos (fixes #7394)
Diffstat (limited to 'youtube_dl/extractor/cbsnews.py')
-rw-r--r--youtube_dl/extractor/cbsnews.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cbsnews.py b/youtube_dl/extractor/cbsnews.py
index 52e61d85b..f9a64a0a2 100644
--- a/youtube_dl/extractor/cbsnews.py
+++ b/youtube_dl/extractor/cbsnews.py
@@ -67,9 +67,12 @@ class CBSNewsIE(InfoExtractor):
'format_id': format_id,
}
if uri.startswith('rtmp'):
+ play_path = re.sub(
+ r'{slistFilePath}', '',
+ uri.split('<break>')[-1].split('{break}')[-1])
fmt.update({
'app': 'ondemand?auth=cbs',
- 'play_path': 'mp4:' + uri.split('<break>')[-1],
+ 'play_path': 'mp4:' + play_path,
'player_url': 'http://www.cbsnews.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/3_3_0/CBSI_PLAYER_HD.swf',
'page_url': 'http://www.cbsnews.com',
'ext': 'flv',