aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-04-28 03:24:59 +0700
committerSergey M․ <dstftw@gmail.com>2017-04-28 03:26:19 +0700
commitc0fa4245cea1dc493e5a72e36644114a2743039c (patch)
treef55ff89575cd525018b50e9f43d786a1f2409b4e
parent8814ae42bc756b97aa0b341792d70ddcbab1de3b (diff)
[downloader/fragment] Remove assert for resume_len when no fragments downloaded
This may be incorrect due some header (e.g. flv header in f4m downloader)
-rw-r--r--youtube_dl/downloader/fragment.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/youtube_dl/downloader/fragment.py b/youtube_dl/downloader/fragment.py
index bb9e82578..d529ae09a 100644
--- 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)