From c0fa4245cea1dc493e5a72e36644114a2743039c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Fri, 28 Apr 2017 03:24:59 +0700 Subject: [PATCH] [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) --- youtube_dl/downloader/fragment.py | 2 -- 1 file changed, 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 @@ def _prepare_frag_download(self, ctx): 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)