Resolve first YouTube search result to its normal watch page. More...
Functions | |
| str | first_video_url (str query, *, str|None api_key=None, float timeout=12.0) |
| Return first YouTube search video, falling back to the search page. | |
Resolve first YouTube search result to its normal watch page.
| str youtube_search_resolver.first_video_url | ( | str | query, |
| * | , | ||
| str | None | api_key = None, | ||
| float | timeout = 12.0 ) |
Return first YouTube search video, falling back to the search page.
Use the configured Data API key first, then optional yt-dlp.