mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-27 01:56: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:
parent
8814ae42bc
commit
c0fa4245ce
1 changed files with 0 additions and 2 deletions
|
@ -155,8 +155,6 @@ class FragmentFD(FileDownloader):
|
||||||
self._write_ytdl_file(ctx)
|
self._write_ytdl_file(ctx)
|
||||||
if ctx['fragment_index'] > 0:
|
if ctx['fragment_index'] > 0:
|
||||||
assert resume_len > 0
|
assert resume_len > 0
|
||||||
else:
|
|
||||||
assert resume_len == 0
|
|
||||||
|
|
||||||
dest_stream, tmpfilename = sanitize_open(tmpfilename, open_mode)
|
dest_stream, tmpfilename = sanitize_open(tmpfilename, open_mode)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue