mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	 52f5be1f1e
			
		
	
	52f5be1f1e
	
	
	
		
			
			Authored by: coletdjnz, Grub4K, pukkandan, bashonly Co-authored-by: Simon Sawicki <contact@grub4k.xyz> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: bashonly <bashonly@protonmail.com>
		
			
				
	
	
		
			38 lines
		
	
	
		
			858 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			858 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # flake8: noqa: F401
 | |
| import warnings
 | |
| 
 | |
| from .common import (
 | |
|     HEADRequest,
 | |
|     PUTRequest,
 | |
|     Request,
 | |
|     RequestDirector,
 | |
|     RequestHandler,
 | |
|     Response,
 | |
| )
 | |
| 
 | |
| # isort: split
 | |
| # TODO: all request handlers should be safely imported
 | |
| from . import _urllib
 | |
| from ..utils import bug_reports_message
 | |
| 
 | |
| try:
 | |
|     from . import _requests
 | |
| except ImportError:
 | |
|     pass
 | |
| except Exception as e:
 | |
|     warnings.warn(f'Failed to import "requests" request handler: {e}' + bug_reports_message())
 | |
| 
 | |
| try:
 | |
|     from . import _websockets
 | |
| except ImportError:
 | |
|     pass
 | |
| except Exception as e:
 | |
|     warnings.warn(f'Failed to import "websockets" request handler: {e}' + bug_reports_message())
 | |
| 
 | |
| try:
 | |
|     from . import _curlcffi  # noqa: F401
 | |
| except ImportError:
 | |
|     pass
 | |
| except Exception as e:
 | |
|     warnings.warn(f'Failed to import "curl_cffi" request handler: {e}' + bug_reports_message())
 |