Generalize XML manifest processing code and improve XSPF parsing (closes #15794)
This commit is contained in:
parent
e0d198c18d
commit
47a5cb7734
3 changed files with 52 additions and 36 deletions
|
@ -2233,7 +2233,9 @@ class GenericIE(InfoExtractor):
|
|||
return smil
|
||||
elif doc.tag == '{http://xspf.org/ns/0/}playlist':
|
||||
return self.playlist_result(
|
||||
self._parse_xspf(doc, video_id, compat_str(full_response.geturl())),
|
||||
self._parse_xspf(
|
||||
doc, video_id, xspf_url=url,
|
||||
xspf_base_url=compat_str(full_response.geturl())),
|
||||
video_id)
|
||||
elif re.match(r'(?i)^(?:{[^}]+})?MPD$', doc.tag):
|
||||
info_dict['formats'] = self._parse_mpd_formats(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue