mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-14 12:23:19 +00:00
one more tranverse
This commit is contained in:
parent
5f35e17572
commit
89eaee2ff8
|
@ -1281,7 +1281,8 @@ def extract_all(pattern):
|
||||||
'model', 'blocks', lambda _, v: v['type'] == 'mediaMetadata',
|
'model', 'blocks', lambda _, v: v['type'] == 'mediaMetadata',
|
||||||
'model'), get_all=False)
|
'model'), get_all=False)
|
||||||
if model:
|
if model:
|
||||||
item_id = try_get(model, lambda x: x['versions'][0]['versionId'])
|
item_id = traverse_obj(model, (
|
||||||
|
'versions', 0, 'versionId'), get_all=False)
|
||||||
formats, subtitles = self._download_media_selector(item_id)
|
formats, subtitles = self._download_media_selector(item_id)
|
||||||
synopses = model.get('synopses') or {}
|
synopses = model.get('synopses') or {}
|
||||||
entries.append({
|
entries.append({
|
||||||
|
|
Loading…
Reference in a new issue