aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-07-23 12:09:30 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-07-23 12:09:30 +0200
commit59db9f80187c4dc3768f8656ede281347a805e1d (patch)
treee7ff29503c422024f1b14cb288374f58e05b0e9b /youtube_dl/downloader
parentb73b14f72c8240466b5bded9fb891697549b89ec (diff)
downloadyoutube-dl-59db9f80187c4dc3768f8656ede281347a805e1d.tar.xz
[downloader/dash] Improve 'combine_url' (fixes #6341)
In some videos the base_url already ends with '/'.
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/dash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/dash.py b/youtube_dl/downloader/dash.py
index a4685d307..8b6fa2753 100644
--- a/youtube_dl/downloader/dash.py
+++ b/youtube_dl/downloader/dash.py
@@ -37,7 +37,7 @@ class DashSegmentsFD(FileDownloader):
def combine_url(base_url, target_url):
if re.match(r'^https?://', target_url):
return target_url
- return '%s/%s' % (base_url, target_url)
+ return '%s%s%s' % (base_url, '' if base_url.endswith('/') else '/', target_url)
with open(tmpfilename, 'wb') as outf:
append_url_to_file(