1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 03:07:16 +08:00

using the ownerName regex before using _og_search_title to get the uploader name

This commit is contained in:
Avichai Cohen 2019-06-19 13:54:53 +03:00
parent 4a7e1afbf3
commit f6afa73ac4

View File

@ -440,12 +440,13 @@ class FacebookIE(InfoExtractor):
video_title = limit_length(video_title, 80)
else:
video_title = 'Facebook video #%s' % video_id
uploader = clean_html(get_element_by_id(
'fbPhotoPageAuthorName', webpage)) or self._search_regex(
r'ownerName\s*:\s*"([^"]+)"', webpage, 'uploader',default=None) or \
self._og_search_title(webpage, default=None) or self._search_regex(
self._search_regex(
r'\"ownerName\":"(.+?)"', tahoe_data.secondary,
'uploader_id', fatal=False)
'uploader_id', fatal=False) or self._og_search_title(webpage, default=None)
timestamp = int_or_none(self._search_regex(