summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-09-23 11:24:10 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-09-23 11:24:33 +0200
commit81ec7c7901ddfe9366cf1af010eb31b906dcfce0 (patch)
tree57c0506865ffe68a14d5ef09ddb73c50fbccd8b5
parent4a2080e4077e9e12c860d82a4d2eebc75c1ea54b (diff)
downloadyoutube-dl-81ec7c7901ddfe9366cf1af010eb31b906dcfce0.tar.gz
youtube-dl-81ec7c7901ddfe9366cf1af010eb31b906dcfce0.tar.xz
youtube-dl-81ec7c7901ddfe9366cf1af010eb31b906dcfce0.zip
[facebook] Allow untitled videos (Fixes #1484)
-rw-r--r--youtube_dl/extractor/facebook.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index beaa5b4bd..9d1bc0751 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -106,8 +106,8 @@ class FacebookIE(InfoExtractor):
         video_duration = int(video_data['video_duration'])
         thumbnail = video_data['thumbnail_src']
 
-        video_title = self._html_search_regex('<h2 class="uiHeaderTitle">([^<]+)</h2>',
-            webpage, u'title')
+        video_title = self._html_search_regex(
+            r'<h2 class="uiHeaderTitle">([^<]*)</h2>', webpage, u'title')
 
         info = {
             'id': video_id,