- return True
-
- segments_to_download = [(initialization_url, 'Init')] if initialization_url else []
- segments_to_download.extend([
- (segment_url, 'Seg%d' % i)
- for i, segment_url in enumerate(segment_urls)])
-
- for i, segment in enumerate(segments_to_download):
- # In DASH, the first segment contains necessary headers to
- # generate a valid MP4 file, so always abort for the first segment
- fatal = i == 0 or not skip_unavailable_fragments
- if not process_segment(segment, ctx['tmpfilename'], fatal):
- return False