using _og_search_title before using the description as a title
This commit is contained in:
parent
549a91de29
commit
4a7e1afbf3
@ -431,6 +431,8 @@ class FacebookIE(InfoExtractor):
|
|||||||
video_title = self._html_search_regex(
|
video_title = self._html_search_regex(
|
||||||
r'(?s)<span class="fbPhotosPhotoCaption".*?id="fbPhotoPageCaption"><span class="hasCaption">(.*?)</span>',
|
r'(?s)<span class="fbPhotosPhotoCaption".*?id="fbPhotoPageCaption"><span class="hasCaption">(.*?)</span>',
|
||||||
webpage, 'alternative title', default=None)
|
webpage, 'alternative title', default=None)
|
||||||
|
if not video_title:
|
||||||
|
video_title = self._og_search_title(webpage, default=None)
|
||||||
if not video_title:
|
if not video_title:
|
||||||
video_title = self._html_search_meta(
|
video_title = self._html_search_meta(
|
||||||
'description', webpage, 'title', default=None)
|
'description', webpage, 'title', default=None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user