|
|
|
@ -120,6 +120,7 @@ class DashSegmentsFD(FragmentFD):
|
|
|
|
|
return frag_content, frag_index
|
|
|
|
|
|
|
|
|
|
def append_fragment(frag_content, frag_index):
|
|
|
|
|
fatal = frag_index == 1 or not skip_unavailable_fragments
|
|
|
|
|
if frag_content:
|
|
|
|
|
fragment_filename = '%s-Frag%d' % (ctx['tmpfilename'], frag_index)
|
|
|
|
|
try:
|
|
|
|
@ -132,7 +133,7 @@ class DashSegmentsFD(FragmentFD):
|
|
|
|
|
if ose.errno != errno.ENOENT:
|
|
|
|
|
raise
|
|
|
|
|
# FileNotFoundError
|
|
|
|
|
if skip_unavailable_fragments:
|
|
|
|
|
if not fatal:
|
|
|
|
|
self.report_skip_fragment(frag_index)
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
@ -141,7 +142,7 @@ class DashSegmentsFD(FragmentFD):
|
|
|
|
|
'fragment %s not found, unable to continue' % frag_index)
|
|
|
|
|
return False
|
|
|
|
|
else:
|
|
|
|
|
if skip_unavailable_fragments:
|
|
|
|
|
if not fatal:
|
|
|
|
|
self.report_skip_fragment(frag_index)
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
|