projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa4bc6e
)
[downloader/fragment] Report warning instead of error on inconsistent download state
author
Sergey M․
<dstftw@gmail.com>
Tue, 17 Oct 2017 15:53:34 +0000
(22:53 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 17 Oct 2017 15:53:34 +0000
(22:53 +0700)
youtube_dl/downloader/fragment.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/fragment.py
b/youtube_dl/downloader/fragment.py
index 7e891b92a3b6a05257484c5d8ba81590013bb74b..93002e45a93278e9f527a08391b8b5b6bd7df218 100644
(file)
--- 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