mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 00:07:08 -05:00 
			
		
		
		
	Merge branch 'opener-to-ydl'
This commit is contained in:
		@@ -538,8 +538,7 @@ def formatSeconds(secs):
 | 
			
		||||
    else:
 | 
			
		||||
        return '%d' % secs
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def make_HTTPS_handler(opts):
 | 
			
		||||
def make_HTTPS_handler(opts_no_check_certificate):
 | 
			
		||||
    if sys.version_info < (3, 2):
 | 
			
		||||
        import httplib
 | 
			
		||||
 | 
			
		||||
@@ -566,7 +565,7 @@ def make_HTTPS_handler(opts):
 | 
			
		||||
        context.set_default_verify_paths()
 | 
			
		||||
        
 | 
			
		||||
        context.verify_mode = (ssl.CERT_NONE
 | 
			
		||||
                               if opts.no_check_certificate
 | 
			
		||||
                               if opts_no_check_certificate
 | 
			
		||||
                               else ssl.CERT_REQUIRED)
 | 
			
		||||
        return compat_urllib_request.HTTPSHandler(context=context)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user