read viewcount properly.
This commit is contained in:
parent
5916a2fc38
commit
ba3b2c535f
@ -458,8 +458,11 @@ class FacebookIE(InfoExtractor):
|
|||||||
thumbnail = self._og_search_thumbnail(webpage)
|
thumbnail = self._og_search_thumbnail(webpage)
|
||||||
|
|
||||||
view_count = parse_count(self._search_regex(
|
view_count = parse_count(self._search_regex(
|
||||||
r'\bviewCount\s*:\s*["\']([\d,.]+)', webpage, 'view count',
|
r'\bpostViewCount\s*:\s*["\']([\d,.]+)', webpage, 'view count',
|
||||||
default=None))
|
default=None) or self._search_regex(
|
||||||
|
r'\"postViewCount\"\s*:\s*(\d+)', tahoe_secondary_data, 'view count',
|
||||||
|
default=None)
|
||||||
|
)
|
||||||
|
|
||||||
info_dict = {
|
info_dict = {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user