mirror of https://github.com/yt-dlp/yt-dlp.git
Simplify
This commit is contained in:
parent
6448cae1b6
commit
baceaa1f2f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue