1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

[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)
This commit is contained in:
Sergey M․ 2017-04-28 03:24:59 +07:00
parent 8814ae42bc
commit c0fa4245ce
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View 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)