Compare commits

..

No commits in common. "bc1878b5cd65376886313538758f801c753c40a4" and "a391e2aa07c0363d04e62778da182cc94339f7da" have entirely different histories.

View File

@ -619,12 +619,14 @@ class ORFONIE(InfoExtractor):
def _real_extract(self, url): def _real_extract(self, url):
video_id, display_id = self._match_valid_url(url).group('id', 'slug') video_id, display_id = self._match_valid_url(url).group('id', 'slug')
webpage = self._download_webpage(url, display_id) webpage = self._download_webpage(url, display_id)
json_ld_data = self._search_json_ld(webpage, display_id, fatal=False)
return { return {
'id': video_id, 'id': video_id,
'title': self._html_search_meta(['og:title', 'twitter:title'], webpage, default=None), 'title': (json_ld_data.get('title')
'description': self._html_search_meta( or self._html_search_meta(['og:title', 'twitter:title'], webpage)),
['description', 'og:description', 'twitter:description'], webpage, default=None), 'description': (json_ld_data.get('description')
**self._search_json_ld(webpage, display_id, fatal=False), or self._html_search_meta(['description', 'og:description', 'twitter:description'], webpage)),
**self._extract_video(video_id, display_id), **json_ld_data,
**self._extract_video(video_id, display_id)
} }