support comment count for facebook.
This commit is contained in:
parent
0ac5eb7606
commit
d9cb3c379c
@ -485,6 +485,7 @@ class FacebookIE(InfoExtractor):
|
|||||||
|
|
||||||
likes_count = parse_count(self._extract_likes(webpage, tahoe_data))
|
likes_count = parse_count(self._extract_likes(webpage, tahoe_data))
|
||||||
shares_count = parse_count(self._extract_meta_count(['sharecount'], webpage, tahoe_data, 'shares'))
|
shares_count = parse_count(self._extract_meta_count(['sharecount'], webpage, tahoe_data, 'shares'))
|
||||||
|
comment_count = parse_count(self._extract_meta_count(['commentCount'], webpage, tahoe_data, 'shares'))
|
||||||
|
|
||||||
info_dict = {
|
info_dict = {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
@ -500,6 +501,7 @@ class FacebookIE(InfoExtractor):
|
|||||||
'like_count': likes_count,
|
'like_count': likes_count,
|
||||||
'share_count': shares_count,
|
'share_count': shares_count,
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
|
'comment_count': comment_count
|
||||||
}
|
}
|
||||||
if uploader_id:
|
if uploader_id:
|
||||||
info_dict['uploader_like_count'] = FacebookAjax(self, webpage, uploader_id).page_likes
|
info_dict['uploader_like_count'] = FacebookAjax(self, webpage, uploader_id).page_likes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user