projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af28430
)
[facebook] Make alternative title optional (Closes #7700)
author
Sergey M․
<dstftw@gmail.com>
Mon, 30 Nov 2015 14:10:09 +0000
(20:10 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 30 Nov 2015 14:10:09 +0000
(20:10 +0600)
youtube_dl/extractor/facebook.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/facebook.py
b/youtube_dl/extractor/facebook.py
index fd854411b554185708d4edeeb338897e0a0da890..321eec59ef672eb6f88bf07f78466ba83456afbc 100644
(file)
--- a/
youtube_dl/extractor/facebook.py
+++ b/
youtube_dl/extractor/facebook.py
@@
-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=Fals
e)
+ webpage, 'alternative title',
default=Non
e)
video_title = limit_length(video_title, 80)
if not video_title:
video_title = 'Facebook video #%s' % video_id