mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 04:37:55 +08:00
Fixed the ustream extractor to use the current ustream API
This commit is contained in:
parent
f540b93706
commit
47cfa94afb
@ -52,17 +52,12 @@ class UstreamIE(InfoExtractor):
|
||||
desktop_url = 'http://www.ustream.tv/recorded/' + desktop_video_id
|
||||
return self.url_result(desktop_url, 'Ustream')
|
||||
|
||||
params = self._download_json(
|
||||
'http://cdngw.ustream.tv/rgwjson/Viewer.getVideo/' + json.dumps({
|
||||
'brandId': 1,
|
||||
'videoId': int(video_id),
|
||||
'autoplay': False,
|
||||
}), video_id)
|
||||
params = self._download_json('https://api.ustream.tv/videos/' + video_id + '.json', video_id)
|
||||
|
||||
if 'error' in params:
|
||||
raise ExtractorError(params['error']['message'], expected=True)
|
||||
|
||||
video_url = params['flv']
|
||||
video_url = params['video']['media_urls']['flv']
|
||||
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user