U
    àM‘fF  ã                   @   s   ddd„Z d S )Nc              	   C   sp   |dkr(t | dƒ}| d¡}W 5 Q R X | d¡rB| dd¡rBdS | d¡rPd	S | d
¡r^dS | d¡rldS dS )zÃDetect format of image (Currently supports jpeg, png, webp, gif only)
    Ref: https://github.com/python/cpython/blob/3.11/Lib/imghdr.py
    Ref: https://www.w3.org/Graphics/JPEG/itu-t81.pdf
    NÚrbé   s   RIFFs   WEBPé   Zwebps   ‰PNGZpngs   ÿØÿZjpegs   GIFZgif)ÚopenÚreadÚ
startswith)ÚfileÚhÚf© r
   ú8/tmp/pip-unpacked-wheel-zk9bgjdq/yt_dlp/compat/imghdr.pyÚwhat   s    


r   )NN)r   r
   r
   r
   r   Ú<module>   ó    