[tvn24] Fall back to <title> when OpenGraph title is missing

This commit is contained in:
Jakub Wilk 2019-04-27 22:28:29 +02:00
parent 27d70ea99e
commit 2d220ad875

View File

@ -133,7 +133,8 @@ class TVN24IE(InfoExtractor):
}
if not info.get('title'):
info['title'] = self._og_search_title(webpage)
info['title'] = (self._og_search_title(webpage, default=None) or
self._html_search_regex(r'<title>([^<]+)', webpage, 'title'))
info['description'] = self._og_search_description(webpage)
return info