
    V|h                     2    S SK Jr  SSKJr   " S S\5      rg)   )InfoExtractor   )
remove_endc            
       X    \ rS rSrSrSSSSSSS	S
SS0/0S.S.SSS.SSS./rSrS rSrg)CharlieRoseIE   zNhttps?://(?:www\.)?charlierose\.com/(?:video|episode)(?:s|/player)/(?P<id>\d+)z$https://charlierose.com/videos/27996 4405b662f557f94aa256fa6a7baf742627996mp4zRemembering Zaha Hadidzre:^https?://.*\.jpg\?\d+z_We revisit past conversations with Zaha Hadid, in memory of the world renowned Iraqi architect.enextvtt)idr   title	thumbnaildescription	subtitles)urlmd5	info_dictT)r   only_matchingz4https://charlierose.com/episodes/30887?autoplay=truez'https://charlierose.com/video/player/%sc                    U R                  U5      nU R                  U R                  U-  U5      n[        U R	                  U5      S5      nU R                  U R                  U-  X2SS9S   nU R                  US   5        US    H  nUR                  S5      S:X  d  M  SUS'   M!     UR                  UUU R                  U5      U R                  U5      S	S
.5        U$ )Nz - Charlie Rosem3u8_native)m3u8_entry_protocol    formatsprotocolT__needs_testing)proto)r   r   r   r   _format_sort_fields)	_match_id_download_webpage_PLAYER_BASEr   _og_search_title_parse_html5_media_entries_remove_duplicate_formatsgetupdate_og_search_thumbnail_og_search_description)selfr   video_idwebpager   r   fmts          V/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/charlierose.py_real_extractCharlieRoseIE._real_extract    s    >>#&(():):X)ExP4009;LM33(' - 4 //02	 	&&y';<Y'Cwwz"m3)-%& ( 	227;66w?#-
 	      N)	__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr#   r0   __static_attributes__r3   r2   r/   r   r      sk    bJ51-5|5 
  6 F%F. =Lr2   r   N)commonr   utilsr   r   r3   r2   r/   <module>r=      s    ! 1M 1r2   