This commit is contained in:
barsnick 2020-10-19 17:56:41 +03:00 committed by GitHub
commit 45e077ce76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -419,6 +419,10 @@ class FacebookIE(InfoExtractor):
video_title = self._html_search_regex(
r'<h2\s+[^>]*class="uiHeaderTitle"[^>]*>([^<]*)</h2>', webpage,
'title', default=None)
if not video_title:
video_title = self._html_search_regex(
r'(?s)<title id="pageTitle"[^>]*>([^<]*)(?: \| Facebook)</title>',
webpage, 'title', default=None)
if not video_title:
video_title = self._html_search_regex(
r'(?s)<span class="fbPhotosPhotoCaption".*?id="fbPhotoPageCaption"><span class="hasCaption">(.*?)</span>',