Browse Source

[facebook] Fix extraction (closes #12323)

Almost all videos now use the pagelet type 'permalink_video_pagelet'
master-ytdl-org
Yen Chi Hsuan 8 years ago
parent
commit
11bb6ad1a5
No known key found for this signature in database GPG Key ID: 7F902A182457CA23
2 changed files with 7 additions and 1 deletions
  1. +6
    -0
      ChangeLog
  2. +1
    -1
      youtube_dl/extractor/facebook.py

+ 6
- 0
ChangeLog View File

@ -1,3 +1,9 @@
version <unreleased>
Extractors
* [facebook] Fix extraction (#12323)
version 2017.02.28 version 2017.02.28
Core Core


+ 1
- 1
youtube_dl/extractor/facebook.py View File

@ -303,7 +303,7 @@ class FacebookIE(InfoExtractor):
if not video_data: if not video_data:
server_js_data = self._parse_json( server_js_data = self._parse_json(
self._search_regex( 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='{}'), webpage, 'js data', default='{}'),
video_id, transform_source=js_to_json, fatal=False) video_id, transform_source=js_to_json, fatal=False)
if server_js_data: if server_js_data:


Loading…
Cancel
Save