mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
[cleanup] Make more playlist entries lazy (#11763)
Authored by: seproDev
This commit is contained in:
parent
dc3c4fddcc
commit
5421669626
4 changed files with 6 additions and 5 deletions
|
|
@ -31,6 +31,7 @@ from ..utils import (
|
|||
update_url_query,
|
||||
url_or_none,
|
||||
)
|
||||
from ..utils.traversal import traverse_obj
|
||||
|
||||
|
||||
class BrightcoveLegacyIE(InfoExtractor):
|
||||
|
|
@ -935,8 +936,8 @@ class BrightcoveNewIE(BrightcoveNewBaseIE):
|
|||
|
||||
if content_type == 'playlist':
|
||||
return self.playlist_result(
|
||||
[self._parse_brightcove_metadata(vid, vid.get('id'), headers)
|
||||
for vid in json_data.get('videos', []) if vid.get('id')],
|
||||
(self._parse_brightcove_metadata(vid, vid['id'], headers)
|
||||
for vid in traverse_obj(json_data, ('videos', lambda _, v: v['id']))),
|
||||
json_data.get('id'), json_data.get('name'),
|
||||
json_data.get('description'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue