Explorar o código

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

Sergey M․ %!s(int64=8) %!d(string=hai) anos
pai
achega
6f3b4a98c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/downloader/fragment.py

+ 1 - 1
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