Skip to content

Commit

Permalink
Update youtube.py
Browse files Browse the repository at this point in the history
disabled shorts in video search results.
  • Loading branch information
Crypto90 authored Aug 12, 2023
1 parent 0886625 commit a658be3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt_dlp/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '')
Expand Down

0 comments on commit a658be3

Please sign in to comment.