瀏覽代碼

[facebook] use _parse_mpd

remitamine 9 年之前
父節點
當前提交
c11875b328
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      youtube_dl/extractor/facebook.py

+ 2 - 3
youtube_dl/extractor/facebook.py

@@ -215,9 +215,8 @@ class FacebookIE(InfoExtractor):
                         })
             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')