read viewCount when postViewCount is not available

This commit is contained in:
Avi Peretz 2019-01-14 16:56:04 +02:00
parent ba3b2c535f
commit 8b50d43212

View File

@ -461,6 +461,10 @@ class FacebookIE(InfoExtractor):
r'\bpostViewCount\s*:\s*["\']([\d,.]+)', webpage, 'view count',
default=None) or self._search_regex(
r'\"postViewCount\"\s*:\s*(\d+)', tahoe_secondary_data, 'view count',
default=None) or self._search_regex(
r'\bviewCount\s*:\s*["\']([\d,.]+)', webpage, 'view count',
default=None) or self._search_regex(
r'\"viewCount\"\s*:\s*(\d+)', tahoe_secondary_data, 'view count',
default=None)
)