1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 16:36:48 +00:00

[facebook] Improve title regex (Closes #5816)

This commit is contained in:
Sergey M․ 2015-05-27 21:25:07 +06:00
parent f0bfaa2d7d
commit bf24c3d017

View File

@ -152,7 +152,7 @@ class FacebookIE(InfoExtractor):
raise ExtractorError('Cannot find video formats') raise ExtractorError('Cannot find video formats')
video_title = self._html_search_regex( video_title = self._html_search_regex(
r'<h2 class="uiHeaderTitle">([^<]*)</h2>', webpage, 'title', r'<h2\s+[^>]*class="uiHeaderTitle"[^>]*>([^<]*)</h2>', webpage, 'title',
default=None) default=None)
if not video_title: if not video_title:
video_title = self._html_search_regex( video_title = self._html_search_regex(