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
remove_endc                   @   s2   e Zd ZdZdddddddd	d
gZdd ZdS )TheHoleTvIEz7https?://(?:www\.)?the-hole\.tv/episodes/(?P<id>[\w-]+)z8https://the-hole.tv/episodes/gromkii-vopros-sergey-orlovZ fea6682f47786f3ae5a6cbd635ec4bf9zgromkii-vopros-sergey-orlovmp4u7   Сергей Орлов — Громкий вопросzBhttps://assets-cdn.the-hole.tv/images/t8gan4n6zn627e7wni11b2uemqtsz$md5:45741a9202331f995d9fb76996759379)idexttitle	thumbnaildescription)urlmd5Z	info_dictc                 C   sh   |  |}| ||}t| d|d}| |d |d\}}|t| |d| ||d||dS )Nz+(<div[^>]*\bdata-controller="player"[^>]*>)zvideo playerzdata-player-source-valuer   u    — The Holezdata-player-poster-value)r   r
   r   r   formats	subtitles)	Z	_match_idZ_download_webpager   Z_search_regexZ#_extract_m3u8_formats_and_subtitlesr   Z_html_extract_titleZ_og_search_descriptionget)selfr   Zvideo_idZwebpageZplayer_attrsr   r    r   >/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/theholetv.py_real_extract   s&    
    zTheHoleTvIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r      s   r   N)commonr   utilsr   r   r   r   r   r   r   <module>   s   