commit: 6f3b4a98c96c54eb0e3933b3cd6b4e6848582a02
parent fa4bc6e71261613cf530437a2407ff7b61ea6cb5
Author: Sergey M․ <dstftw@gmail.com>
Date: Tue, 17 Oct 2017 22:53:34 +0700
[downloader/fragment] Report warning instead of error on inconsistent download state
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/downloader/fragment.py b/youtube_dl/downloader/fragment.py
@@ -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