U
    g	                     @   s0   d dl mZ ddlmZmZ G dd deZdS )   )InfoExtractor   )extract_attributesget_element_html_by_idc                   @   s\   e Zd ZdZdddddddd	dd
ddddddddddddddgZdd ZdS )EpochIEz7https?://www.theepochtimes\.com/[\w-]+_(?P<id>\d+).htmlzhttps://www.theepochtimes.com/they-can-do-audio-video-physical-surveillance-on-you-24h-365d-a-year-rex-lee-on-intrusive-apps_4661688.htmlz$a3dd732c-4750-4bc8-8156-69180668bda1mp4ug   ‘They Can Do Audio, Video, Physical Surveillance on You 24H/365D a Year’: Rex Lee on Intrusive Apps)idexttitle)urlZ	info_dictzhttps://www.theepochtimes.com/the-communist-partys-cyberattacks-on-america-explained-rex-lee-talks-tech-hybrid-warfare_4342413.htmlz$276c7f46-3bbf-475d-9934-b9bbe827cf0au\   The Communist Party’s Cyberattacks on America Explained; Rex Lee Talks Tech Hybrid Warfarezzhttps://www.theepochtimes.com/kash-patel-a-6-year-saga-of-government-corruption-from-russiagate-to-mar-a-lago_4690250.htmlz$aa9ceecd-a127-453d-a2de-7153d6fd69b6uW   Kash Patel: A ‘6-Year-Saga’ of Government Corruption, From Russiagate to Mar-a-Lagozmhttps://www.theepochtimes.com/dick-morris-discusses-his-book-the-return-trumps-big-2024-comeback_4819205.htmlz$9489f994-2a20-4812-b233-ac0e5c345632uL   Dick Morris Discusses His Book ‘The Return: Trump’s Big 2024 Comeback’c                 C   sZ   |  |}| ||}ttd|d }| jd| d|ddd\}}|||| |dS )	NZvideoboxzdata-idzhttp://vs1.youmaker.com/assets/z/playlist.m3u8r   Zhls)Zm3u8_id)r   formats	subtitlesr
   )Z	_match_idZ_download_webpager   r   Z#_extract_m3u8_formats_and_subtitlesZ_html_extract_title)selfr   Zvideo_idZwebpageZyoumaker_video_idr   r    r   :/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/epoch.py_real_extract*   s    

   
zEpochIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r      s6   			#r   N)commonr   utilsr   r   r   r   r   r   r   <module>   s   