[facebook] Make alternative title optional (Closes #7700)
authorSergey M․ <dstftw@gmail.com>
Mon, 30 Nov 2015 14:10:09 +0000 (20:10 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 30 Nov 2015 14:10:09 +0000 (20:10 +0600)
youtube_dl/extractor/facebook.py

index fd854411b554185708d4edeeb338897e0a0da890..321eec59ef672eb6f88bf07f78466ba83456afbc 100644 (file)
@@ -164,7 +164,7 @@ class FacebookIE(InfoExtractor):
         if not video_title:
             video_title = self._html_search_regex(
                 r'(?s)<span class="fbPhotosPhotoCaption".*?id="fbPhotoPageCaption"><span class="hasCaption">(.*?)</span>',
-                webpage, 'alternative title', fatal=False)
+                webpage, 'alternative title', default=None)
             video_title = limit_length(video_title, 80)
         if not video_title:
             video_title = 'Facebook video #%s' % video_id