mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 00:47:15 +08:00
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))
|
||||
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 = {
|
||||
'id': video_id,
|
||||
@ -500,6 +501,7 @@ class FacebookIE(InfoExtractor):
|
||||
'like_count': likes_count,
|
||||
'share_count': shares_count,
|
||||
'subtitles': subtitles,
|
||||
'comment_count': comment_count
|
||||
}
|
||||
if uploader_id:
|
||||
info_dict['uploader_like_count'] = FacebookAjax(self, webpage, uploader_id).page_likes
|
||||
|
Loading…
x
Reference in New Issue
Block a user