mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 09:17:21 -05:00
YouTube: Fall back to <meta> description if video is rated (Fixes #800)
This commit is contained in:
parent
69fc019f26
commit
7b670a4483
@ -569,6 +569,10 @@ class YoutubeIE(InfoExtractor):
|
|||||||
video_description = get_element_by_id("eow-description", video_webpage)
|
video_description = get_element_by_id("eow-description", video_webpage)
|
||||||
if video_description:
|
if video_description:
|
||||||
video_description = clean_html(video_description)
|
video_description = clean_html(video_description)
|
||||||
|
else:
|
||||||
|
fd_mobj = re.search(r'<meta name="description" content="([^"]+)"', video_webpage)
|
||||||
|
if fd_mobj:
|
||||||
|
video_description = unescapeHTML(fd_mobj.group(1))
|
||||||
else:
|
else:
|
||||||
video_description = u''
|
video_description = u''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user