o
    i                     @   s    d dl mZ G dd deZdS )   )InfoExtractorc                   @   s4   e Zd ZdZdddddddd	did
Zdd ZdS )OktoberfestTVIEzGhttps?://(?:www\.)?oktoberfest-tv\.de/[^/]+/[^/]+/video/(?P<id>[^/?#]+)z5http://www.oktoberfest-tv.de/de/kameras/video/hb-zeltzhb-zeltmp4uK   re:^Live-Kamera: Hofbräuzelt [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$zre:^https?://.*\.jpg$T)idexttitle	thumbnailis_liveskip_download)url	info_dictparamsc           	      C   sl   |  |}| ||}| d|d}| d|d}| d|d}|| }| jd|dd	d
}|||dd|dS )Nz"<h1><strong>.*?</strong>(.*?)</h1>r   zclip:\s*\{\s*url:\s*'([^']+)'clipznetConnectionUrl:\s*'([^']+)'z	rtmp basez2canvas:\s*\{\s*backgroundImage:\s*'url\(([^)]+)\)'r   F)fatalr   T)r   r   r   r   r	   r   )	_match_id_download_webpage_html_search_regex_search_regex)	selfr   video_idwebpager   r   ncurl	video_urlr    r   R/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/oktoberfesttv.py_real_extract   s.   
zOktoberfestTVIE._real_extractN)__name__
__module____qualname__
_VALID_URL_TESTr   r   r   r   r   r      s    r   N)commonr   r   r   r   r   r   <module>   s    