U
    gF                     @   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 )zDetect 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-q5ljy6pj/yt_dlp/compat/imghdr.pywhat   s    


r   )NN)r   r
   r
   r
   r   <module>       