-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,12 +87,15 @@ def _real_extract(self, url): | |
usp = video_data.get('usp') | ||
if video_data.get('uspEnabled') and isinstance(video_guid, compat_str) and isinstance(usp, dict): | ||
hls_aes = video_data.get('hlsAes') | ||
m3u8_url = ('http://fable.vzaar.com/v5/usp%s/%s/%s.ism/.m3u8?' | ||
% ('aes' if hls_aes else '', video_guid, video_id)) + '&'.join( | ||
'%s=%s' % (k, v) for k, v in usp.items()) | ||
formats.extend(self._extract_m3u8_formats( | ||
m3u8_url, video_id, 'mp4', 'm3u8' if hls_aes else 'm3u8_native', | ||
m3u8_id='hls', fatal=False)) | ||
qs = '&'.join('%s=%s' % (k, v) for k, v in usp.items()) | ||
url_templ = 'http://%%s.vzaar.com/v5/usp%s/%s/%s.ism%%s?' % ('aes' if hls_aes else '', video_guid, video_id) | ||
m3u8_formats = self._extract_m3u8_formats( | ||
url_templ % ('fable', '/.m3u8') + qs, video_id, 'mp4', 'm3u8_native', | ||
m3u8_id='hls', fatal=False) | ||
if hls_aes: | ||
for f in m3u8_formats: | ||
f['_decryption_key_url'] = url_templ % ('goose', '') + qs | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
remitamine
Author
Collaborator
|
||
formats.extend(m3u8_formats) | ||
|
||
self._sort_formats(formats) | ||
|
||
|
New options should be passed in
downloader_options
. Also downloader option should be documented.