mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 11:54:50 +00:00 
			
		
		
		
	Disable Insecure Request Warnings
These seem to occur when using HTTP+S proxies when connecting to a HTTPS URL. E.g., NordVPN proxies to https://google.com. While not ideal, we can't solve this solution and the warning logs are quite annoying.
This commit is contained in:
		
							parent
							
								
									eebe76b6f6
								
							
						
					
					
						commit
						a8694cb049
					
				@ -4,6 +4,8 @@ from pathlib import Path
 | 
			
		||||
 | 
			
		||||
import click
 | 
			
		||||
import coloredlogs
 | 
			
		||||
import urllib3
 | 
			
		||||
from urllib3.exceptions import InsecureRequestWarning
 | 
			
		||||
 | 
			
		||||
from devine.core import __version__
 | 
			
		||||
from devine.core.commands import Commands
 | 
			
		||||
@ -29,6 +31,8 @@ def main(version: bool, debug: bool, log_path: Path) -> None:
 | 
			
		||||
        fh.setFormatter(LOG_FORMATTER)
 | 
			
		||||
        log.addHandler(fh)
 | 
			
		||||
 | 
			
		||||
    urllib3.disable_warnings(InsecureRequestWarning)
 | 
			
		||||
 | 
			
		||||
    log.info(f"Devine version {__version__} Copyright (c) 2019-{datetime.now().year} rlaphoenix")
 | 
			
		||||
    log.info("Convenient Widevine-DRM Downloader and Decrypter.")
 | 
			
		||||
    log.info("https://github.com/devine-dl/devine")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user