Browse Source

[facebook] extract uploader

totalwebcasting
remitamine 9 years ago
parent
commit
51a575159a
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      youtube_dl/extractor/facebook.py

+ 4
- 0
youtube_dl/extractor/facebook.py View File

@ -17,6 +17,8 @@ from ..utils import (
int_or_none,
limit_length,
urlencode_postdata,
get_element_by_id,
clean_html,
)
@ -161,6 +163,7 @@ class FacebookIE(InfoExtractor):
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 @@ class FacebookIE(InfoExtractor):
'formats': formats,
'duration': int_or_none(video_data.get('video_duration')),
'thumbnail': video_data.get('thumbnail_src'),
'uploader': uploader,
}

Loading…
Cancel
Save