|
|
@ -29,6 +29,8 @@ class FragmentFD(FileDownloader):
|
|
|
|
and hlsnative only)
|
|
|
|
and hlsnative only)
|
|
|
|
skip_unavailable_fragments:
|
|
|
|
skip_unavailable_fragments:
|
|
|
|
Skip unavailable fragments (DASH and hlsnative only)
|
|
|
|
Skip unavailable fragments (DASH and hlsnative only)
|
|
|
|
|
|
|
|
keep_fragments: Keep downloaded fragments on disk after downloading is
|
|
|
|
|
|
|
|
finished
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
def report_retry_fragment(self, err, frag_index, count, retries):
|
|
|
|
def report_retry_fragment(self, err, frag_index, count, retries):
|
|
|
@ -81,6 +83,7 @@ class FragmentFD(FileDownloader):
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|
if not (ctx.get('live') or ctx['tmpfilename'] == '-'):
|
|
|
|
if not (ctx.get('live') or ctx['tmpfilename'] == '-'):
|
|
|
|
self._write_ytdl_file(ctx)
|
|
|
|
self._write_ytdl_file(ctx)
|
|
|
|
|
|
|
|
if not self.params.get('keep_fragments', False):
|
|
|
|
os.remove(ctx['fragment_filename_sanitized'])
|
|
|
|
os.remove(ctx['fragment_filename_sanitized'])
|
|
|
|
del ctx['fragment_filename_sanitized']
|
|
|
|
del ctx['fragment_filename_sanitized']
|
|
|
|
|
|
|
|
|
|
|
|