youtube-dl

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

commit e0c982c8d0b0ca76482c6184ec3e749bbf566b6d
parent 331ce0a05d08f39f93d1568b37f3d3252c90b86e
Author: Ricardo Garcia <sarbalap+freshmeat@gmail.com>
Date:   Sun, 24 Oct 2010 17:31:33 +0200

Load cookies if the cookie file exists when starting the program

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

diff --git a/youtube-dl b/youtube-dl @@ -2190,6 +2190,8 @@ if __name__ == '__main__': else: try: jar = cookielib.MozillaCookieJar(opts.cookiefile) + if os.path.isfile(opts.cookiefile) and os.access(opts.cookiefile, os.R_OK): + jar.load() except (IOError, OSError), err: sys.exit(u'ERROR: unable to open cookie file')