aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-11-01 01:15:46 +0700
committerSergey M․ <dstftw@gmail.com>2016-11-01 01:15:46 +0700
commitb82c33dd67c24cd6db94a9793b2f62a5db412795 (patch)
tree31f62e86f742bd84c2d22cf813dd4563691d1372 /youtube_dl/extractor/common.py
parente5a088dc4be4fdcc96927a9f1b7284d4cd49c415 (diff)
[extractor/common] Improve mpd base URL extraction (closes #10909, closes #11079)
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 415dc84c8..68b325fca 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -1539,7 +1539,7 @@ class InfoExtractor(object):
if res is False:
return []
mpd, urlh = res
- mpd_base_url = re.match(r'https?://.+/', urlh.geturl()).group()
+ mpd_base_url = re.match(r'https?://[^?#&]+/', urlh.geturl()).group()
return self._parse_mpd_formats(
compat_etree_fromstring(mpd.encode('utf-8')), mpd_id, mpd_base_url,