aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/facebook.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-27 21:25:07 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-27 21:25:07 +0600
commitbf24c3d01798fad0a8344a642eb5d46231fd78c2 (patch)
tree01076baa7e2ce44f1d8c20be64edd4b0dc22915e /youtube_dl/extractor/facebook.py
parentf0bfaa2d7d9563975f1f6effa75d28dcdb1c23ce (diff)
[facebook] Improve title regex (Closes #5816)
Diffstat (limited to 'youtube_dl/extractor/facebook.py')
-rw-r--r--youtube_dl/extractor/facebook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index e8d682716..82dc27bc6 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -152,7 +152,7 @@ class FacebookIE(InfoExtractor):
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(