Skip to content

Commit

Permalink
[facebook] Improve title regex (Closes #5816)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed May 27, 2015
1 parent f0bfaa2 commit bf24c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/facebook.py
Expand Up @@ -152,7 +152,7 @@ def _real_extract(self, url):
raise ExtractorError('Cannot find video formats')

video_title = self._html_search_regex(
r'<h2 class="uiHeaderTitle">([^<]*)</h2>', webpage, 'title',
r'<h2\s+[^>]*class="uiHeaderTitle"[^>]*>([^<]*)</h2>', webpage, 'title',
default=None)
if not video_title:
video_title = self._html_search_regex(
Expand Down

0 comments on commit bf24c3d

Please sign in to comment.