1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[extractor/generic] Pass mpd base url to _parse_mpd_formats

This commit is contained in:
Sergey M․ 2016-02-13 00:15:59 +06:00
parent bb20526b64
commit 7be747b921

View File

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