Relax regex.
This commit is contained in:
parent
f8ae9b34da
commit
9062246371
@ -466,7 +466,7 @@ class FacebookIE(InfoExtractor):
|
||||
uploader_id = self._search_regex(
|
||||
r'ownerid:"([\d]+)', webpage,
|
||||
'uploader_id', default=None) or self._search_regex(
|
||||
r'\"ownerid\":"(\d+)"', tahoe_secondary_data,
|
||||
r'[\'\"]ownerid[\'\"]\s*:\s*[\'\"](\d+)[\'\"]', tahoe_secondary_data,
|
||||
'uploader_id', fatal=False)
|
||||
|
||||
thumbnail = self._og_search_thumbnail(webpage)
|
||||
@ -474,11 +474,11 @@ class FacebookIE(InfoExtractor):
|
||||
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',
|
||||
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',
|
||||
r'[\'\"]viewCount[\'\"]\s*:\s*(\d+)', tahoe_secondary_data, 'view count',
|
||||
default=None)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user