[ie/facebook] Fix DASH formats extraction (#9734)

Closes #9720
Authored by: bashonly
pull/8937/head
bashonly 8 months ago committed by GitHub
parent c9ce57d9bf
commit e3b42d8b1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -560,7 +560,7 @@ class FacebookIE(InfoExtractor):
js_data, lambda x: x['jsmods']['instances'], list) or []) js_data, lambda x: x['jsmods']['instances'], list) or [])
def extract_dash_manifest(video, formats): def extract_dash_manifest(video, formats):
dash_manifest = video.get('dash_manifest') dash_manifest = traverse_obj(video, 'dash_manifest', 'playlist', expected_type=str)
if dash_manifest: if dash_manifest:
formats.extend(self._parse_mpd_formats( formats.extend(self._parse_mpd_formats(
compat_etree_fromstring(urllib.parse.unquote_plus(dash_manifest)), compat_etree_fromstring(urllib.parse.unquote_plus(dash_manifest)),

Loading…
Cancel
Save