Browse Source

[cbsnews] Fix construction of 'play_path' in some videos (fixes #7394)

totalwebcasting
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
1ebb4717df
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/extractor/cbsnews.py

+ 4
- 1
youtube_dl/extractor/cbsnews.py View File

@ -67,9 +67,12 @@ class CBSNewsIE(InfoExtractor):
'format_id': format_id, 'format_id': format_id,
} }
if uri.startswith('rtmp'): if uri.startswith('rtmp'):
play_path = re.sub(
r'{slistFilePath}', '',
uri.split('<break>')[-1].split('{break}')[-1])
fmt.update({ fmt.update({
'app': 'ondemand?auth=cbs', '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', 'player_url': 'http://www.cbsnews.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/3_3_0/CBSI_PLAYER_HD.swf',
'page_url': 'http://www.cbsnews.com', 'page_url': 'http://www.cbsnews.com',
'ext': 'flv', 'ext': 'flv',


Loading…
Cancel
Save