diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2015-07-23 12:09:30 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2015-07-23 12:09:30 +0200 |
commit | 59db9f80187c4dc3768f8656ede281347a805e1d (patch) | |
tree | e7ff29503c422024f1b14cb288374f58e05b0e9b | |
parent | b73b14f72c8240466b5bded9fb891697549b89ec (diff) |
[downloader/dash] Improve 'combine_url' (fixes #6341)
In some videos the base_url already ends with '/'.
-rw-r--r-- | youtube_dl/downloader/dash.py | 2 |
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( |