mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-20 12:24:57 +00:00
YouTube: Fall back to <meta> description if video is rated (Fixes #800)
This commit is contained in:
parent
69fc019f26
commit
7b670a4483
@ -570,7 +570,11 @@ class YoutubeIE(InfoExtractor):
|
|||||||
if video_description:
|
if video_description:
|
||||||
video_description = clean_html(video_description)
|
video_description = clean_html(video_description)
|
||||||
else:
|
else:
|
||||||
video_description = u''
|
fd_mobj = re.search(r'<meta name="description" content="([^"]+)"', video_webpage)
|
||||||
|
if fd_mobj:
|
||||||
|
video_description = unescapeHTML(fd_mobj.group(1))
|
||||||
|
else:
|
||||||
|
video_description = u''
|
||||||
|
|
||||||
# subtitles
|
# subtitles
|
||||||
video_subtitles = None
|
video_subtitles = None
|
||||||
|
Loading…
Reference in New Issue
Block a user