aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-03-18 02:46:50 +0700
committerSergey M․ <dstftw@gmail.com>2018-03-18 02:52:17 +0700
commit47a5cb77344536ca79d81a04904ac9ef9b02050f (patch)
tree1dc8d6cd98d0f0637e975cbdf2fbd3909ccb37dc /youtube_dl/extractor/generic.py
parente0d198c18d4a5f191adbfb43259c104d16e30596 (diff)
Generalize XML manifest processing code and improve XSPF parsing (closes #15794)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 023ccbc9b..1cc491b19 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -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(