aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-13 00:15:59 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-13 00:15:59 +0600
commit7be747b921f0e31f4db3db2fd7e1c90d265ed566 (patch)
treef02e1c91f313e174165fb42bcb5f6e8e4f9b1f49
parentbb20526b64c1624639b18e1b582fbdee1bd5da64 (diff)
[extractor/generic] Pass mpd base url to _parse_mpd_formats
-rw-r--r--youtube_dl/extractor/generic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index ede9801bb..d6d0a9ed0 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -1302,7 +1302,8 @@ class GenericIE(InfoExtractor):
return {
'id': video_id,
'title': compat_urllib_parse_unquote(os.path.splitext(url_basename(url))[0]),
- 'formats': self._parse_mpd_formats(doc, video_id),
+ 'formats': self._parse_mpd_formats(
+ doc, video_id, mpd_base_url=url.rpartition('/')[0]),
}
except compat_xml_parse_error:
pass