commit: 98a62d7cbd57c546871eb47460efc5eb95aec874
parent d6c5fdef34cffd56670eef09bb631005acb19385
Author: Remita Amine <remitamine@gmail.com>
Date: Fri, 11 Dec 2020 21:50:40 +0100
[facebook] Add another regex for handleServerJS
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
@@ -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', []))