mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Apply suggestions from code review
This commit is contained in:
parent
6660d09f09
commit
7db3b3cd00
1 changed files with 1 additions and 2 deletions
|
@ -740,8 +740,7 @@ def _real_extract(self, url):
|
|||
highlights = traverse_obj(videos, (f'highlight:{story_id}', 'items'), (user_id, 'items'))
|
||||
info_data = []
|
||||
for highlight in highlights:
|
||||
highlight.setdefault('user', {})
|
||||
highlight['user'].update(user_info)
|
||||
highlight.setdefault('user', {}).update(user_info)
|
||||
highlight_data = self._extract_product(highlight)
|
||||
if highlight_data.get('formats'):
|
||||
info_data.append({
|
||||
|
|
Loading…
Reference in a new issue