From baceaa1f2f4de2839763cdf4949a2e164c5d4800 Mon Sep 17 00:00:00 2001 From: sepro Date: Sat, 7 Sep 2024 16:10:44 +0200 Subject: [PATCH] Simplify --- yt_dlp/extractor/youtube.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index bbddaec45..7eb1c8ec4 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -5007,10 +5007,10 @@ class YoutubeTabBaseInfoExtractor(YoutubeBaseInfoExtractor): yield self.url_result( f'https://www.youtube.com/shorts/{video_id}', ie=YoutubeIE, video_id=video_id, - **traverse_obj(renderer, { - 'title': ('overlayMetadata', 'primaryText', 'content', {str}), - 'view_count': ('overlayMetadata', 'secondaryText', 'content', {parse_count}), - }), + **traverse_obj(renderer, ('overlayMetadata', { + 'title': ('primaryText', 'content', {str}), + 'view_count': ('secondaryText', 'content', {parse_count}), + })), thumbnails=self._extract_thumbnails(renderer, 'thumbnail', final_key='sources')) return