[downloader/hls] Properly close stream

pull/8/head
Sergey M․ 2015-09-10 02:41:30 +06:00
rodzic d85187eb74
commit 133a2b4ac2
1 zmienionych plików z 1 dodań i 0 usunięć
youtube_dl/downloader

Wyświetl plik

@ -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)