diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2018-03-07 21:31:53 +0000 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-03-18 02:48:44 +0700 |
commit | 96b8b9abaecb7518d901dc9d6a617f19c3161236 (patch) | |
tree | aa320ed4589f11131c381e08777265229424ff9c /youtube_dl/extractor/generic.py | |
parent | 178ee88319a384b66d9b2da27a819f32ba870425 (diff) |
[extractor/generic] Support relative URIs in _parse_xspf
<location> can have relative URIs, not just absolute.
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index dbd565066..023ccbc9b 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2232,7 +2232,9 @@ class GenericIE(InfoExtractor): self._sort_formats(smil['formats']) return smil elif doc.tag == '{http://xspf.org/ns/0/}playlist': - return self.playlist_result(self._parse_xspf(doc, video_id), video_id) + return self.playlist_result( + self._parse_xspf(doc, video_id, compat_str(full_response.geturl())), + video_id) elif re.match(r'(?i)^(?:{[^}]+})?MPD$', doc.tag): info_dict['formats'] = self._parse_mpd_formats( doc, |