projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d85187e
)
[downloader/hls] Properly close stream
author
Sergey M․
<dstftw@gmail.com>
Wed, 9 Sep 2015 20:41:30 +0000
(
02:41
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 9 Sep 2015 20:41:30 +0000
(
02:41
+0600)
youtube_dl/downloader/hls.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/hls.py
b/youtube_dl/downloader/hls.py
index 71aafdc73e17a29bd6784f5200b193126fb35fe4..b2436e732cf501fd12a0189a0110e938d05924c6 100644
(file)
--- a/
youtube_dl/downloader/hls.py
+++ b/
youtube_dl/downloader/hls.py
@@
-92,6
+92,7
@@
class NativeHlsFD(FragmentFD):
return False
down, frag_sanitized = sanitize_open(frag_filename, 'rb')
ctx['dest_stream'].write(down.read())
+ down.close()
frags_filenames.append(frag_sanitized)
self._finish_frag_download(ctx)