[downloader/fragment] Remove assert for resume_len when no fragments downloaded
authorSergey M․ <dstftw@gmail.com>
Thu, 27 Apr 2017 20:24:59 +0000 (03:24 +0700)
committerSergey 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

index bb9e82578da70dc22b7a3ac421a9c5d2bfb3580d..d529ae09ad14d38e8cc6b8659ebf5fd982e26406 100644 (file)
@@ -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)