mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 01:27:07 -05:00 
			
		
		
		
	Load cookies if the cookie file exists when starting the program
This commit is contained in:
		@@ -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')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user