mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-06 08:50:07 +01:00
[facebook] extract uploader
This commit is contained in:
parent
3f125c8c70
commit
51a575159a
@ -17,6 +17,8 @@
|
||||
int_or_none,
|
||||
limit_length,
|
||||
urlencode_postdata,
|
||||
get_element_by_id,
|
||||
clean_html,
|
||||
)
|
||||
|
||||
|
||||
@ -161,6 +163,7 @@ def _real_extract(self, url):
|
||||
video_title = limit_length(video_title, 80)
|
||||
if not video_title:
|
||||
video_title = 'Facebook video #%s' % video_id
|
||||
uploader = clean_html(get_element_by_id('fbPhotoPageAuthorName', webpage))
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
@ -168,4 +171,5 @@ def _real_extract(self, url):
|
||||
'formats': formats,
|
||||
'duration': int_or_none(video_data.get('video_duration')),
|
||||
'thumbnail': video_data.get('thumbnail_src'),
|
||||
'uploader': uploader,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user