Update youtube.py

This commit is contained in:
ViruZs 2020-07-30 18:22:14 +05:30 committed by GitHub
parent 2a3f7e2117
commit 5e79527881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2244,7 +2244,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
# thumbnail image # thumbnail image
# We try first to get a high quality image: # We try first to get a high quality image:
m_thumb = re.search(r'<span itemprop="thumbnail".*?href="(.*?)">',video_webpage, re.DOTALL) m_thumb = re.search(r'<span itemprop="thumbnail".*?href="(.*?)">',
video_webpage, re.DOTALL)
if m_thumb is not None: if m_thumb is not None:
video_thumbnail = m_thumb.group(1) video_thumbnail = m_thumb.group(1)
elif 'thumbnail_url' not in video_info: elif 'thumbnail_url' not in video_info: