youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 88a23aef5a7d64ab4f4d682d6b336ac9eea2efba
parent 140d8d77b307fe1e13e54f56c11b3441d9b4d0c1
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri,  5 Sep 2014 22:05:36 +0700

[http] Avoid closing stdout (Fixes #3686)

Diffstat:
Myoutube_dl/downloader/http.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py @@ -193,7 +193,8 @@ class HttpFD(FileDownloader): self.to_stderr(u"\n") self.report_error(u'Did not get any data blocks') return False - stream.close() + if tmpfilename != u'-': + stream.close() self.report_finish(data_len_str, (time.time() - start)) if data_len is not None and byte_counter != data_len: raise ContentTooShortError(byte_counter, int(data_len))