From 8b50d432121ce659460715c97b8d4cc8d0b76e3f Mon Sep 17 00:00:00 2001 From: Avi Peretz Date: Mon, 14 Jan 2019 16:56:04 +0200 Subject: [PATCH] read viewCount when postViewCount is not available --- youtube_dl/extractor/facebook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index f7b65a2ae..028182280 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -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) )