o
    i;                     @   sl   d dl Z d dlmZmZ dd Zdd Zee Zede  g dZ	ed	d
gdZ
e
eddgd7 Z
dS )    N)collect_submodulescollect_data_filesc                  C   sT   zdd l } W dS  ty)   zdd l}tdtjd W Y dS  ty(   Y Y dS w w )Nr   zkWARNING: Using Crypto since Cryptodome is not available. Install with: python3 -m pip install pycryptodomex)fileCrypto
Cryptodome)r   ImportErrorr   printsysstderr)r   r    r   T/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/__pyinstaller/hook-yt_dlp.pypycryptodome_module   s   
	r   c                  c   sD    dE d H  dE d H  t  V  dD ]	} t| E d H  qdE d H  d S )N)zyt_dlp.compat._legacyzyt_dlp.compat._deprecated)zyt_dlp.utils._legacyzyt_dlp.utils._deprecated)
websocketsrequestsurllib3)mutagenbrotlicertifisecretstorage	curl_cffi)r   r   )moduler   r   r   get_hidden_imports   s   

r   zAdding imports: )
youtube_dlyoutube_dlctestytdlp_plugins
devscriptsbundler   z
cacert.pem)includes
yt_dlp_ejsz**/*.js)r	   PyInstaller.utils.hooksr   r   r   r   listhiddenimportsr   excludedimportsdatasr   r   r   r   <module>   s    
