embed.set_thumbnail(url=f"{src}")
https://img.youtube.com/vi/VIDEO_ID/hqdefault.jpg
, где VIDEO_ID
- id видео, from urllib import parse
url = 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
video_id = parse.parse_qs(parse.urlparse(url).query)['v'][0]
thumbnail_url = f'https://img.youtube.com/vi/{video_id}/hqdefault.jpg'