a
    h                     @   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-plotkinZmp4z!THE DEPOSITION OF STANLEY PLOTKINz$md5:6d0be4f1181daaa10430fd8b945a5e54z0re:https?://static\.arkengine\.com/video/.+\.jpg)idexttitledescriptionZ	thumbnail)urlZ	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   Zhls)Zm3u8_id    )	Z	_match_idZ_download_webpager	   r   r   r   r   r   Z_parse_html5_media_entries)selfr   Z
display_idZwebpageZ	embed_urlZ
embed_page r   Q/mnt/pikpak/tmp/myenv/lib/python3.9/site-packages/yt_dlp/extractor/thehighwire.py_real_extract   s     
zTheHighWireIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r
      s   r
   N)commonr   utilsr   r   r   Zutils.traversalr   r   r	   r
   r   r   r   r   <module>   s   