[facebook] fix posts video data extraction(closes #22473)
authorRemita Amine <remitamine@gmail.com>
Sun, 10 Nov 2019 16:02:47 +0000 (17:02 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 10 Nov 2019 16:02:47 +0000 (17:02 +0100)
youtube_dl/extractor/facebook.py

index c723726b77ed451d6effeda84408b97399dd6920..ce64e26831fdafceb97b6d8ae919c00a78f0f90f 100644 (file)
@@ -334,7 +334,7 @@ class FacebookIE(InfoExtractor):
         if not video_data:
             server_js_data = self._parse_json(
                 self._search_regex(
-                    r'bigPipe\.onPageletArrive\(({.+?})\)\s*;\s*}\s*\)\s*,\s*["\']onPageletArrive\s+(?:stream_pagelet|pagelet_group_mall|permalink_video_pagelet)',
+                    r'bigPipe\.onPageletArrive\(({.+?})\)\s*;\s*}\s*\)\s*,\s*["\']onPageletArrive\s+(?:pagelet_group_mall|permalink_video_pagelet|hyperfeed_story_id_\d+)',
                     webpage, 'js data', default='{}'),
                 video_id, transform_source=js_to_json, fatal=False)
             video_data = extract_from_jsmods_instances(server_js_data)