aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2020-12-11 21:50:40 +0100
committerRemita Amine <remitamine@gmail.com>2020-12-11 21:50:40 +0100
commit98a62d7cbd57c546871eb47460efc5eb95aec874 (patch)
treecf7d754bdd97582ef62a87d3380b927d2322c263 /youtube_dl
parentd6c5fdef34cffd56670eef09bb631005acb19385 (diff)
[facebook] Add another regex for handleServerJS
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/facebook.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index bc4844adc..cc45aacc0 100644
--- 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', []))