1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 03:07:16 +08:00

Do not fail in case secondary data not exists.

This commit is contained in:
Avi Peretz 2019-01-20 10:33:16 +02:00
parent 9062246371
commit 32fe6908c9

View File

@ -354,7 +354,7 @@ class FacebookIE(InfoExtractor):
video_id, transform_source=js_to_json, fatal=False)
video_data = extract_from_jsmods_instances(server_js_data)
tahoe_secondary_data = ''
if not video_data:
if not fatal_if_no_video:
return webpage, False
@ -396,7 +396,9 @@ class FacebookIE(InfoExtractor):
data=tahoe_request_data,
headers=tahoe_request_headers, fatal=False
)
if not tahoe_secondary_data:
tahoe_secondary_data = ''
tahoe_js_data = self._parse_json(
self._search_regex(
r'for\s+\(\s*;\s*;\s*\)\s*;(.+)', tahoe_primary_data,