
    yf[                     &    d dl mZ  G d de      Zy)   )InfoExtractorc                   .    e Zd ZdZdddddddd	d
Zd Zy)CAM4IEz1https?://(?:[^/]+\.)?cam4\.com/(?P<id>[a-z0-9_]+)zhttps://www.cam4.com/foxynesss	foxynesssmp4z;re:^foxynesss [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$   is_livez2https://snapshots.xcdnpro.com/thumbnails/foxynesss)idexttitle	age_limitlive_status	thumbnail)url	info_dictc                     | j                  |      }| j                  dj                  |      |      j                  d      }| j	                  ||ddd      }||dd|d| d	S )
Nz4https://www.cam4.com/rest/v1.0/profile/{}/streamInfocdnURLr   hlsT)m3u8_idliver   z)https://snapshots.xcdnpro.com/thumbnails/)r
   r   r	   r   formatsr   )	_match_id_download_jsonformatget_extract_m3u8_formats)selfr   
channel_idm3u8_playlistr   s        7/usr/lib/python3/dist-packages/yt_dlp/extractor/cam4.py_real_extractzCAM4IE._real_extract   s    ^^C(
++,b,i,ijt,u  xB  C  G  G  HP  Q,,]JW\cg,h DZLQ
 	
    N)__name__
__module____qualname__
_VALID_URL_TESTr!    r"   r    r   r      s-    EJ/R$M

E
r"   r   N)commonr   r   r(   r"   r    <module>r*      s    !
] 
r"   