youtube-dl

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

commit e08878f498c69567b213d781da02187869285a5f
parent a949a3ae6bda6efa3abc3770e49be34653cc613b
Author: Ricardo Garcia <sarbalap+freshmeat@gmail.com>
Date:   Sat, 23 Oct 2010 12:22:42 +0200

Set stdout to binary mode under Windows (fixes issue #218)

Diffstat:
Myoutube-dl | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/youtube-dl b/youtube-dl @@ -94,6 +94,9 @@ def sanitize_open(filename, open_mode): """ try: if filename == u'-': + if sys.platform == 'win32': + import msvcrt + msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) return (sys.stdout, filename) stream = open(filename, open_mode) return (stream, filename)