Merge branch 'fix-facebook-date' into fix.25.12.2018

This commit is contained in:
Avi Peretz 2019-01-14 16:56:25 +02:00
commit 8ebc3c328a

View File

@ -458,8 +458,15 @@ class FacebookIE(InfoExtractor):
thumbnail = self._og_search_thumbnail(webpage)
view_count = parse_count(self._search_regex(
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))
default=None) or self._search_regex(
r'\"viewCount\"\s*:\s*(\d+)', tahoe_secondary_data, 'view count',
default=None)
)
info_dict = {
'id': video_id,