o
    i                     @   sH   d dl mZ ddlmZmZmZ ddlmZmZm	Z	 G dd deZ
dS )   )InfoExtractor   )
clean_htmlextract_attributesurl_or_none)find_elementrequiretraverse_objc                   @   s0   e Zd ZdZdddddddd	gZd
d ZdS )TheHighWireIEz>https?://(?:www\.)?thehighwire\.com/ark-videos/(?P<id>[^/?#]+)zEhttps://thehighwire.com/ark-videos/the-deposition-of-stanley-plotkin/z!the-deposition-of-stanley-plotkinmp4z!THE DEPOSITION OF STANLEY PLOTKINz$md5:6d0be4f1181daaa10430fd8b945a5e54z0re:https?://static\.arkengine\.com/video/.+\.jpg)idexttitledescription	thumbnail)url	info_dictc                 C   s   |  |}| ||}t|tdddhthdthtdhf}| ||}d|it|tddhthftd	dhthfd
| j|||ddd S )Nzark-video-embedT)clshtmlsrcz	embed URLr   zsection-header)r   zepisode-description__copy)r   r   hls)m3u8_id    )		_match_id_download_webpager	   r   r   r   r   r   _parse_html5_media_entries)selfr   
display_idwebpage	embed_url
embed_page r!   P/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/thehighwire.py_real_extract   s    
zTheHighWireIE._real_extractN)__name__
__module____qualname__
_VALID_URL_TESTSr#   r!   r!   r!   r"   r
      s    r
   N)commonr   utilsr   r   r   utils.traversalr   r   r	   r
   r!   r!   r!   r"   <module>   s    