logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 131bc7651a546d09028cdbb231339b624bf1fbbf
parent 5caacaddc65c7bf756c7c2830043ded3b7685a85
Author: Ricardo Garcia <sarbalap+freshmeat@gmail.com>
Date:   Fri, 19 Mar 2010 17:51:20 +0100

Make the "-" output file name equivalent to /dev/stdout (fixes issue #103)

Diffstat:

Myoutube-dl2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/youtube-dl b/youtube-dl @@ -93,6 +93,8 @@ def sanitize_open(filename, open_mode): It returns the tuple (stream, definitive_file_name). """ try: + if filename == u'-': + return (sys.stdout, filename) stream = open(filename, open_mode) return (stream, filename) except (IOError, OSError), err: