Browse Source

YouTube: Fall back to <meta> description if video is rated (Fixes #800)

master
Philipp Hagemeister 11 years ago
parent
commit
7b670a4483
1 changed files with 5 additions and 1 deletions
  1. 6
      youtube_dl/InfoExtractors.py

6
youtube_dl/InfoExtractors.py

@ -570,7 +570,11 @@ class YoutubeIE(InfoExtractor):
if video_description:
video_description = clean_html(video_description)
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
video_subtitles = None

Loading…
Cancel
Save