mirror of https://github.com/blackjack4494/yt-dlc
[downloader/dash] make initialization_url optional
This commit is contained in:
parent
c11875b328
commit
a1a22572fb
|
@ -40,9 +40,10 @@ class DashSegmentsFD(FileDownloader):
|
||||||
return '%s%s%s' % (base_url, '' if base_url.endswith('/') else '/', target_url)
|
return '%s%s%s' % (base_url, '' if base_url.endswith('/') else '/', target_url)
|
||||||
|
|
||||||
with open(tmpfilename, 'wb') as outf:
|
with open(tmpfilename, 'wb') as outf:
|
||||||
append_url_to_file(
|
if info_dict.get('initialization_url'):
|
||||||
outf, combine_url(base_url, info_dict['initialization_url']),
|
append_url_to_file(
|
||||||
'initialization segment')
|
outf, combine_url(base_url, info_dict['initialization_url']),
|
||||||
|
'initialization segment')
|
||||||
for i, segment_url in enumerate(segment_urls):
|
for i, segment_url in enumerate(segment_urls):
|
||||||
segment_len = append_url_to_file(
|
segment_len = append_url_to_file(
|
||||||
outf, combine_url(base_url, segment_url),
|
outf, combine_url(base_url, segment_url),
|
||||||
|
|
Loading…
Reference in New Issue