o
    il                     @   s    d dl mZ G dd deZdS )   )InfoExtractorc                   @   s\   e Zd ZdZdZdddddded	d
diddddddddeddd
didgZdd ZdS )LentaIEFz?https?://(?:www\.)?lenta\.ru/[^/]+/\d+/\d+/\d+/(?P<id>[^/?#&]+)z.https://lenta.ru/news/2018/03/22/savshenko_go/964400mp4u2   Надежду Савченко задержалиzre:^https?://.*\.jpg$=   )idexttitle	thumbnailduration
view_countskip_downloadT)url	info_dictparamsz(http://lenta.ru/news/2015/03/06/navalny/227304u1   Навальный вышел на свободуz$md5:d97861ac9ae77377f3f20eaf9d04b4f5W       )r   r   r	   descriptionr
   r   r   	age_limitc                 C   sP   |  |}| ||}| jd|dd d}|r!| jd| d|dS | j|ddS )	Nzvid\s*:\s*["\']?(\d+)zeagleplatform id)defaultz.eagleplatform:lentaru.media.eagleplatform.com:EaglePlatform)ievideo_idGeneric)r   )	_match_id_download_webpage_search_regex
url_result)selfr   
display_idwebpager    r"   J/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/lenta.py_real_extract&   s   
zLentaIE._real_extractN)__name__
__module____qualname___WORKING
_VALID_URLint_TESTSr$   r"   r"   r"   r#   r      s:    	r   N)commonr   r   r"   r"   r"   r#   <module>   s    