From: Sergey M․ Date: Thu, 27 Apr 2017 20:24:59 +0000 (+0700) Subject: [downloader/fragment] Remove assert for resume_len when no fragments downloaded X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=c0fa4245cea1dc493e5a72e36644114a2743039c;p=youtube-dl.git [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) --- 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)