According to the dump file in #10846, handleServerJS() now accepts
an optional second argument. It's a string from available dump files.
version <unreleased>
Extractors
+* [facebook] Fix video extraction (#10846)
+ [commonprotocols] Support direct MMS links (#10838)
if not video_data:
server_js_data = self._parse_json(self._search_regex(
- r'handleServerJS\(({.+})\);', webpage, 'server js data', default='{}'), video_id)
+ r'handleServerJS\(({.+})(?:\);|,")', webpage, 'server js data', default='{}'), video_id)
for item in server_js_data.get('instances', []):
if item[1][0] == 'VideoConfig':
video_data = video_data_list2dict(item[2][0]['videoData'])