aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/dash.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-02-06 06:26:02 +0100
committerremitamine <remitamine@gmail.com>2016-02-06 06:26:02 +0100
commit66159b38aad38d55f84a358a0c2ed2add9a2946d (patch)
tree4768cc49d929039a5a3c866600b7c0aee475f35d /youtube_dl/downloader/dash.py
parent23d17e4bebdff9a5defa012e4fa5cd99db605919 (diff)
parent255732f0d33268aeababb1b3ce37a1defb5bc965 (diff)
Merge pull request #8408 from remitamine/dash
Add generic support for mpd manifests(dash formats)
Diffstat (limited to 'youtube_dl/downloader/dash.py')
-rw-r--r--youtube_dl/downloader/dash.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/downloader/dash.py b/youtube_dl/downloader/dash.py
index 535f2a7fc..b0070aead 100644
--- a/youtube_dl/downloader/dash.py
+++ b/youtube_dl/downloader/dash.py
@@ -40,9 +40,10 @@ class DashSegmentsFD(FileDownloader):
return '%s%s%s' % (base_url, '' if base_url.endswith('/') else '/', target_url)
with open(tmpfilename, 'wb') as outf:
- append_url_to_file(
- outf, combine_url(base_url, info_dict['initialization_url']),
- 'initialization segment')
+ if info_dict.get('initialization_url'):
+ append_url_to_file(
+ outf, combine_url(base_url, info_dict['initialization_url']),
+ 'initialization segment')
for i, segment_url in enumerate(segment_urls):
segment_len = append_url_to_file(
outf, combine_url(base_url, segment_url),