projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6c5fde
)
[facebook] Add another regex for handleServerJS
author
Remita Amine
<remitamine@gmail.com>
Fri, 11 Dec 2020 20:50:40 +0000
(21:50 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Fri, 11 Dec 2020 20:50:40 +0000
(21:50 +0100)
youtube_dl/extractor/facebook.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/facebook.py
b/youtube_dl/extractor/facebook.py
index bc4844adcf9d53a567c9e92eb2ed5b4aa7baadac..cc45aacc0b99b22e0a8a0133103e0b7e84837239 100644
(file)
--- 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', []))