projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f125c8
)
[facebook] extract uploader
author
remitamine
<remitamine@gmail.com>
Sun, 2 Aug 2015 21:52:12 +0000
(22:52 +0100)
committer
remitamine
<remitamine@gmail.com>
Sun, 2 Aug 2015 21:52:12 +0000
(22:52 +0100)
youtube_dl/extractor/facebook.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/facebook.py
b/youtube_dl/extractor/facebook.py
index e17bb9aeac51e2e10e2b68b4391d3022af35bcd5..734de4da2545f4a36d908e49e79453b3b3acfd63 100644
(file)
--- a/
youtube_dl/extractor/facebook.py
+++ b/
youtube_dl/extractor/facebook.py
@@
-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,
}