diff --git a/youtube_dl/downloader/dash.py b/youtube_dl/downloader/dash.py index a4685d307f..8b6fa2753a 100644 --- a/youtube_dl/downloader/dash.py +++ b/youtube_dl/downloader/dash.py @@ -37,7 +37,7 @@ def append_url_to_file(outf, target_url, target_name, remaining_bytes=None): 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(