1
0
Fork 0
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:
bashonly 2025-02-23 07:20:16 +00:00 committed by GitHub
parent 6660d09f09
commit 7db3b3cd00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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({