From: Sergey M․ Date: Wed, 9 Sep 2015 20:41:30 +0000 (+0600) Subject: [downloader/hls] Properly close stream X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=133a2b4ac21e041d7ed66c1d0fa00f7dc5f757af;p=youtube-dl [downloader/hls] Properly close stream --- diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py index 71aafdc73..b2436e732 100644 --- 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)