1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-31 02:05:34 +08:00

[facebook] Improve uploader extraction (closes #20250)

This commit is contained in:
Sergey M․ 2019-03-06 01:27:22 +07:00
parent ee0ba927aa
commit a551768acf
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -424,7 +424,7 @@ class FacebookIE(InfoExtractor):
uploader = clean_html(get_element_by_id(
'fbPhotoPageAuthorName', webpage)) or self._search_regex(
r'ownerName\s*:\s*"([^"]+)"', webpage, 'uploader',
fatal=False) or self._og_search_title(webpage, fatal=False)
default=None) or self._og_search_title(webpage, fatal=False)
timestamp = int_or_none(self._search_regex(
r'<abbr[^>]+data-utime=["\'](\d+)', webpage,
'timestamp', default=None))