[facebook] Allow untitled videos (Fixes #1484)
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 23 Sep 2013 09:24:10 +0000 (11:24 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 23 Sep 2013 09:24:33 +0000 (11:24 +0200)
youtube_dl/extractor/facebook.py

index beaa5b4bdfe146419a97edb4b01bf65ec51c2551..9d1bc07510c3148b8ed8659d697c46017c6a36ff 100644 (file)
@@ -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,