Browse Source
[downloader/fragment] Report warning instead of error on inconsistent download state
master
Sergey M․
7 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|