From a658be384c801eb793c3eff8c4a1651239951ff5 Mon Sep 17 00:00:00 2001 From: Crypto90 Date: Sat, 12 Aug 2023 17:49:33 +0200 Subject: [PATCH] Update youtube.py disabled shorts in video search results. --- yt_dlp/extractor/youtube.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index dff9f54378d9..c440d38b5d72 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -1033,7 +1033,8 @@ def _extract_video(self, renderer): expected_type=str)) or '' url = f'https://www.youtube.com/watch?v={video_id}' if overlay_style == 'SHORTS' or '/shorts/' in navigation_url: - url = f'https://www.youtube.com/shorts/{video_id}' + #url = f'https://www.youtube.com/shorts/{video_id}' + return None time_text = (self._get_text(renderer, 'publishedTimeText', 'videoInfo') or self._get_text(reel_header_renderer, 'timestampText') or '')