
    V|h	                     >    S SK Jr  SSKJrJrJrJr   " S S\5      rg)   )InfoExtractor   )ExtractorErrorUserNotLivelowercase_escapetraverse_objc                   B    \ rS rSrSrSSSS\SSS	.S
S.SSS./rS rSrg)StripchatIE
   z'https?://stripchat\.com/(?P<id>[^/?#]+)z$https://stripchat.com/Joselin_FlowerJoselin_Flowermp4z@re:^Joselin_Flower [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$T   )idexttitledescriptionis_live	age_limitzRoom is offline)url	info_dictskipz"https://stripchat.com/Rakhijaan@xh)r   only_matchingc           
         U R                  U5      nU R                  XU R                  5       S9nU R                  SUSU[        S9n[        USS[        145      (       a
  [        SSS	9e[        USS
S[        145      (       d	  [        US9eUS   S
   S   n/ n[        US5       H*  nU R                  SU SU SU S3USSSSS9nU(       d  M*    O   U(       d  U R                  SUS9  UUU R                  U5      SUSS.$ )N)headersz1<script\b[^>]*>\s*window\.__PRELOADED_STATE__\s*=data)transform_sourceviewCamshowzModel is in a private showT)expectedmodelisLive)video_idr   )))configr   )configV3static)))features
featuresV2hlsFallbackfallbackDomains.hlsStreamHostzhttps://edge-hls.z/hls/z/master/z
_auto.m3u8r   hlsF)r   m3u8_idfatallivezUnable to extract stream hostr   )r   r   r   r   formatsr   )	_match_id_download_webpagegeo_verification_headers_search_jsonr   r   dictr   boolr   _extract_m3u8_formatsraise_no_formats_og_search_description)selfr   r"   webpager   model_idr/   hosts           T/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/stripchat.py_real_extractStripchatIE._real_extract   sR   >>#&((@]@]@_(`  @VX8H ! J y&4&9:: !=MMD9gx$"HIIx00	?7+D1 ! (g hD00#D6xj
*UeU%d 1 LG wh !!"AH!U 66w?
 	
     N)	__name__
__module____qualname____firstlineno__
_VALID_URLstr_TESTSr>   __static_attributes__rA   r@   r=   r
   r
   
   sD    ;J5"W
 " 4F #
r@   r
   N)commonr   utilsr   r   r   r   r
   rA   r@   r=   <module>rL      s    ! 5
- 5
r@   