mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 09:31:01 +01:00
[downloader/fragment] Report warning instead of error on inconsistent download state
This commit is contained in:
parent
fa4bc6e712
commit
6f3b4a98c9
@ -158,7 +158,7 @@ def _prepare_frag_download(self, ctx):
|
||||
if os.path.isfile(encodeFilename(self.ytdl_filename(ctx['filename']))):
|
||||
self._read_ytdl_file(ctx)
|
||||
if ctx['fragment_index'] > 0 and resume_len == 0:
|
||||
self.report_error(
|
||||
self.report_warning(
|
||||
'Inconsistent state of incomplete fragment download. '
|
||||
'Restarting from the beginning...')
|
||||
ctx['fragment_index'] = resume_len = 0
|
||||
|
Loading…
Reference in New Issue
Block a user