0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[facebook] use _parse_mpd

This commit is contained in:
remitamine 2016-02-02 18:11:16 +01:00
parent 8ff648e4f9
commit c11875b328

View file

@ -215,9 +215,8 @@ def video_data_list2dict(video_data):
})
dash_manifest = f[0].get('dash_manifest')
if dash_manifest:
formats.extend(self._parse_dash_manifest(
compat_etree_fromstring(compat_urllib_parse_unquote_plus(dash_manifest)),
namespace='urn:mpeg:dash:schema:mpd:2011'))
formats.extend(self._parse_mpd(
compat_etree_fromstring(compat_urllib_parse_unquote_plus(dash_manifest))))
if not formats:
raise ExtractorError('Cannot find video formats')