]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[facebook] Fix extraction (closes #12323)
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 2 Mar 2017 12:49:39 +0000 (20:49 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 2 Mar 2017 12:51:24 +0000 (20:51 +0800)
Almost all videos now use the pagelet type 'permalink_video_pagelet'

ChangeLog
youtube_dl/extractor/facebook.py

index 2a1fd90185b4d9b3ab7968810f1a6f4673c0bf86..448d7f521991a605986db1f2ddcea203525be710 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Extractors
+* [facebook] Fix extraction (#12323)
+
+
 version 2017.02.28
 
 Core
index 70b8c95c5074dda5c553f1c1d1869165320a4707..6315d40c50a700c741db25c5f04492bdae1ac809 100644 (file)
@@ -303,7 +303,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)',
+                    r'bigPipe\.onPageletArrive\(({.+?})\)\s*;\s*}\s*\)\s*,\s*["\']onPageletArrive\s+(?:stream_pagelet|pagelet_group_mall|permalink_video_pagelet)',
                     webpage, 'js data', default='{}'),
                 video_id, transform_source=js_to_json, fatal=False)
             if server_js_data: