1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-07-01 03:22:52 -05:00

Generalize XML manifest processing code and improve XSPF parsing (closes #15794)

This commit is contained in:
Sergey M․
2018-03-18 02:46:50 +07:00
parent e0d198c18d
commit 47a5cb7734
3 changed files with 52 additions and 36 deletions

View File

@ -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(