[facebook] Add another regex for handleServerJS

unlicense
Remita Amine 2021-02-26 15:11:26 +01:00 committed by Dominika
parent 80e135e246
commit 7178c3e070
1 changed files with 2 additions and 2 deletions

View File

@ -365,8 +365,8 @@ class FacebookIE(InfoExtractor):
return video_data
server_js_data = self._parse_json(self._search_regex(
r'handleServerJS\(({.+})(?:\);|,")', webpage,
'server js data', default='{}'), video_id, fatal=False)
[r'handleServerJS\(({.+})(?:\);|,")', r'\bs\.handle\(({.+?})\);'],
webpage, 'server js data', default='{}'), video_id, fatal=False)
if server_js_data:
video_data = extract_video_data(server_js_data.get('instances', []))