mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 18:22:21 +00:00
[facebook] Add another regex for handleServerJS
This commit is contained in:
parent
d6c5fdef34
commit
98a62d7cbd
1 changed files with 2 additions and 2 deletions
|
@ -365,8 +365,8 @@ class FacebookIE(InfoExtractor):
|
||||||
return video_data
|
return video_data
|
||||||
|
|
||||||
server_js_data = self._parse_json(self._search_regex(
|
server_js_data = self._parse_json(self._search_regex(
|
||||||
r'handleServerJS\(({.+})(?:\);|,")', webpage,
|
[r'handleServerJS\(({.+})(?:\);|,")', r'\bs\.handle\(({.+?})\);'],
|
||||||
'server js data', default='{}'), video_id, fatal=False)
|
webpage, 'server js data', default='{}'), video_id, fatal=False)
|
||||||
|
|
||||||
if server_js_data:
|
if server_js_data:
|
||||||
video_data = extract_video_data(server_js_data.get('instances', []))
|
video_data = extract_video_data(server_js_data.get('instances', []))
|
||||||
|
|
Loading…
Reference in a new issue