mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
[ustream] Fix extraction (closes #3998)
This commit is contained in:
parent
c99f4098c4
commit
f8610ba1ca
@ -1,5 +1,6 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import json
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
@ -39,7 +40,15 @@ def _real_extract(self, url):
|
|||||||
desktop_url = 'http://www.ustream.tv/recorded/' + desktop_video_id
|
desktop_url = 'http://www.ustream.tv/recorded/' + desktop_video_id
|
||||||
return self.url_result(desktop_url, 'Ustream')
|
return self.url_result(desktop_url, 'Ustream')
|
||||||
|
|
||||||
video_url = 'http://tcdn.ustream.tv/video/%s' % video_id
|
params = self._download_json(
|
||||||
|
'http://cdngw.ustream.tv/rgwjson/Viewer.getVideo/' + json.dumps({
|
||||||
|
'brandId': 1,
|
||||||
|
'videoId': int(video_id),
|
||||||
|
'autoplay': False,
|
||||||
|
}), video_id)
|
||||||
|
|
||||||
|
video_url = params['flv']
|
||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
self.report_extraction(video_id)
|
self.report_extraction(video_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user