1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 20:37:15 +08:00

adding option for likes extraction

This commit is contained in:
Avichai 2020-03-11 18:49:08 +02:00
parent 2b594af6f0
commit e23f867b39

View File

@ -552,6 +552,10 @@ class FacebookIE(InfoExtractor):
if values:
return values[-1]
values = re.findall(r'"reaction_count"\s*:\s*{\s*"count"\s*:\s*(\d+)', tahoe_data.secondary)
if values:
return values[-1]
def _extract_views(self, webpage, tahoe_data):
value = self._extract_meta_count(['postViewCount', 'viewCount'], webpage, tahoe_data, 'likes')
if value: