]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[downloader/hls] Properly close stream
authorSergey M․ <dstftw@gmail.com>
Wed, 9 Sep 2015 20:41:30 +0000 (02:41 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 9 Sep 2015 20:41:30 +0000 (02:41 +0600)
youtube_dl/downloader/hls.py

index 71aafdc73e17a29bd6784f5200b193126fb35fe4..b2436e732cf501fd12a0189a0110e938d05924c6 100644 (file)
@@ -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)