1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[downloader/fragment] Report warning instead of error on inconsistent download state

This commit is contained in:
Sergey M․ 2017-10-17 22:53:34 +07:00
parent fa4bc6e712
commit 6f3b4a98c9
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -158,7 +158,7 @@ class FragmentFD(FileDownloader):
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