mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[downloader/hls] Properly close stream
This commit is contained in:
parent
d85187eb74
commit
133a2b4ac2
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ def real_download(self, filename, info_dict):
|
||||||
return False
|
return False
|
||||||
down, frag_sanitized = sanitize_open(frag_filename, 'rb')
|
down, frag_sanitized = sanitize_open(frag_filename, 'rb')
|
||||||
ctx['dest_stream'].write(down.read())
|
ctx['dest_stream'].write(down.read())
|
||||||
|
down.close()
|
||||||
frags_filenames.append(frag_sanitized)
|
frags_filenames.append(frag_sanitized)
|
||||||
|
|
||||||
self._finish_frag_download(ctx)
|
self._finish_frag_download(ctx)
|
||||||
|
|
Loading…
Reference in a new issue