A feature-rich command-line audio/video downloader
[extractor/common] Improve base url construction
Sergey M․bb20526b64c1
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex 359bdd299a..444d412d9c 100644--- a/youtube_dl/extractor/common.py+++ b/youtube_dl/extractor/common.py@@ -1435,7 +1435,9 @@ class InfoExtractor(object):base_url = base_url_e.text + base_urlif re.match(r'^https?://', base_url):break- if not re.match(r'^https?://', base_url):+ if mpd_base_url and not re.match(r'^https?://', base_url):+ if not mpd_base_url.endswith('/') and not base_url.startswith('/'):+ mpd_base_url += '/'base_url = mpd_base_url + base_urlrepresentation_id = representation_attrib.get('id')lang = representation_attrib.get('lang')