[jeuxvideo] Fallback on og:title (Closes #7186, closes #7190)
authorSergey M․ <dstftw@gmail.com>
Fri, 16 Oct 2015 02:44:19 +0000 (08:44 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 16 Oct 2015 02:44:19 +0000 (08:44 +0600)
youtube_dl/extractor/jeuxvideo.py

index 1df084d87ae4c712d9bcfa1aac6d6367641287b5..eef7daa299813219c5211aefe2051a1160238319 100644 (file)
@@ -28,7 +28,7 @@ class JeuxVideoIE(InfoExtractor):
         mobj = re.match(self._VALID_URL, url)
         title = mobj.group(1)
         webpage = self._download_webpage(url, title)
-        title = self._html_search_meta('name', webpage)
+        title = self._html_search_meta('name', webpage) or self._og_search_title(webpage)
         config_url = self._html_search_regex(
             r'data-src="(/contenu/medias/video.php.*?)"',
             webpage, 'config URL')