A feature-rich command-line audio/video downloader
Load cookies if the cookie file exists when starting the program
Ricardo Garciae0c982c8d0b0
diff --git a/youtube-dl b/youtube-dlindex e681e2d3fd..2a51ef4212 100755--- 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')