|
|
@ -165,18 +165,11 @@ class FragmentFD(FileDownloader):
|
|
|
|
total_frags_str = 'unknown (live)'
|
|
|
|
total_frags_str = 'unknown (live)'
|
|
|
|
self.to_screen(f'[{self.FD_NAME}] Total fragments: {total_frags_str}')
|
|
|
|
self.to_screen(f'[{self.FD_NAME}] Total fragments: {total_frags_str}')
|
|
|
|
self.report_destination(ctx['filename'])
|
|
|
|
self.report_destination(ctx['filename'])
|
|
|
|
dl = HttpQuietDownloader(
|
|
|
|
dl = HttpQuietDownloader(self.ydl, {
|
|
|
|
self.ydl,
|
|
|
|
**self.params,
|
|
|
|
{
|
|
|
|
'noprogress': True,
|
|
|
|
'continuedl': self.params.get('continuedl', True),
|
|
|
|
'test': False,
|
|
|
|
'quiet': self.params.get('quiet'),
|
|
|
|
})
|
|
|
|
'noprogress': True,
|
|
|
|
|
|
|
|
'ratelimit': self.params.get('ratelimit'),
|
|
|
|
|
|
|
|
'retries': self.params.get('retries', 0),
|
|
|
|
|
|
|
|
'nopart': self.params.get('nopart', False),
|
|
|
|
|
|
|
|
'test': False,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
tmpfilename = self.temp_name(ctx['filename'])
|
|
|
|
tmpfilename = self.temp_name(ctx['filename'])
|
|
|
|
open_mode = 'wb'
|
|
|
|
open_mode = 'wb'
|
|
|
|
resume_len = 0
|
|
|
|
resume_len = 0
|
|
|
|