aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-01-30 22:40:13 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-01-30 22:40:56 +0800
commit16f38a699f7c6d2820720d704a2373ba28c568b1 (patch)
tree6f2c6c446bd23246ed775303d94ee86d6f270bed /youtube_dl/extractor/common.py
parenta6c2c24479e5f4827ceb06f64d855329c0a6f593 (diff)
downloadyoutube-dl-16f38a699f7c6d2820720d704a2373ba28c568b1.tar.xz
[common] Rename to namespace
For consistency with _parse_smil_*
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index f1313ef04..a05efec9e 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -1330,9 +1330,9 @@ class InfoExtractor(object):
})
return entries
- def _parse_dash_manifest(self, video_id, dash_doc, default_ns='urn:mpeg:DASH:schema:MPD:2011', formats_dict={}, fatal=True):
- def _add_ns(tag):
- return '{%s}%s' % (default_ns, tag)
+ def _parse_dash_manifest(self, video_id, dash_doc, namespace=None, formats_dict={}, fatal=True):
+ def _add_ns(path):
+ return self._xpath_ns(path, namespace)
formats = []
for a in dash_doc.findall('.//' + _add_ns('AdaptationSet')):