projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8814ae4
)
[downloader/fragment] Remove assert for resume_len when no fragments downloaded
author
Sergey M․
<dstftw@gmail.com>
Thu, 27 Apr 2017 20:24:59 +0000
(
03:24
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 27 Apr 2017 20:26:19 +0000
(
03:26
+0700)
This may be incorrect due some header (e.g. flv header in f4m downloader)
youtube_dl/downloader/fragment.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/fragment.py
b/youtube_dl/downloader/fragment.py
index bb9e82578da70dc22b7a3ac421a9c5d2bfb3580d..d529ae09ad14d38e8cc6b8659ebf5fd982e26406 100644
(file)
--- a/
youtube_dl/downloader/fragment.py
+++ b/
youtube_dl/downloader/fragment.py
@@
-155,8
+155,6
@@
class FragmentFD(FileDownloader):
self._write_ytdl_file(ctx)
if ctx['fragment_index'] > 0:
assert resume_len > 0
- else:
- assert resume_len == 0
dest_stream, tmpfilename = sanitize_open(tmpfilename, open_mode)