This commit is contained in:
sepro 2024-09-07 16:10:44 +02:00
parent 6448cae1b6
commit baceaa1f2f
1 changed files with 4 additions and 4 deletions

View File

@ -5007,10 +5007,10 @@ class YoutubeTabBaseInfoExtractor(YoutubeBaseInfoExtractor):
yield self.url_result( yield self.url_result(
f'https://www.youtube.com/shorts/{video_id}', f'https://www.youtube.com/shorts/{video_id}',
ie=YoutubeIE, video_id=video_id, ie=YoutubeIE, video_id=video_id,
**traverse_obj(renderer, { **traverse_obj(renderer, ('overlayMetadata', {
'title': ('overlayMetadata', 'primaryText', 'content', {str}), 'title': ('primaryText', 'content', {str}),
'view_count': ('overlayMetadata', 'secondaryText', 'content', {parse_count}), 'view_count': ('secondaryText', 'content', {parse_count}),
}), })),
thumbnails=self._extract_thumbnails(renderer, 'thumbnail', final_key='sources')) thumbnails=self._extract_thumbnails(renderer, 'thumbnail', final_key='sources'))
return return