
    V|hF                         SS jr g )Nc                 ^   Uc&  [        U S5       nUR                  S5      nSSS5        UR                  S5      (       a  UR                  SS5      (       a  gUR                  S5      (       a  g	UR                  S
5      (       a  gUR                  S5      (       a  gg! , (       d  f       N= f)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   webps   PNGpngs   jpegs   GIFgif)openread
startswith)filehfs      N/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/compat/imghdr.pywhatr      s    
 	y$r
A  	||Ggq!9!9||J||O$$||F s   B
B,)NN)r        r   <module>r      s
   r   