mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-06-30 11:02:54 -05:00
[common] Rename to namespace
For consistency with _parse_smil_*
This commit is contained in:
@ -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')):
|
||||
|
Reference in New Issue
Block a user