mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 09:17:48 +00:00
[lynda] Extract all prioritized streams
This commit is contained in:
parent
7593fbaa12
commit
5a11b793fe
1 changed files with 8 additions and 7 deletions
|
@ -140,12 +140,13 @@ class LyndaIE(LyndaBaseIE):
|
||||||
|
|
||||||
prioritized_streams = video_json.get('PrioritizedStreams')
|
prioritized_streams = video_json.get('PrioritizedStreams')
|
||||||
if prioritized_streams:
|
if prioritized_streams:
|
||||||
|
for prioritized_stream_id, prioritized_stream in prioritized_streams.items():
|
||||||
formats.extend([
|
formats.extend([
|
||||||
{
|
{
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
'width': int_or_none(format_id),
|
'width': int_or_none(format_id),
|
||||||
'format_id': format_id,
|
'format_id': '%s-%s' % (prioritized_stream_id, format_id),
|
||||||
} for format_id, video_url in prioritized_streams['0'].items()
|
} for format_id, video_url in prioritized_stream.items()
|
||||||
])
|
])
|
||||||
|
|
||||||
self._check_formats(formats, video_id)
|
self._check_formats(formats, video_id)
|
||||||
|
|
Loading…
Reference in a new issue