A feature-rich command-line audio/video downloader
[downloader/fragment] Report warning instead of error on inconsistent download state
Sergey M․6f3b4a98c96c
diff --git a/youtube_dl/downloader/fragment.py b/youtube_dl/downloader/fragment.pyindex 7e891b92a3..93002e45a9 100644--- 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