mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 02:47:15 +08:00
using the ownerName regex before using _og_search_title to get the uploader name
This commit is contained in:
parent
4a7e1afbf3
commit
f6afa73ac4
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user