U
    gl                     @   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/Z964400Zmp4u2   Надежду Савченко задержалиzre:^https?://.*\.jpg$=   )idexttitle	thumbnailduration
view_countZskip_downloadT)urlZ	info_dictparamsz(http://lenta.ru/news/2015/03/06/navalny/Z227304u1   Навальный вышел на свободуz$md5:d97861ac9ae77377f3f20eaf9d04b4f5W       )r   r   r   descriptionr   r	   r
   Z	age_limitc                 C   sP   |  |}| ||}| jd|dd d}|rB| jd| d|dS | j|ddS )	Nzvid\s*:\s*["\']?(\d+)zeagleplatform id)defaultz.eagleplatform:lentaru.media.eagleplatform.com:ZEaglePlatform)ievideo_idGeneric)r   )Z	_match_idZ_download_webpageZ_search_regexZ
url_result)selfr   Z
display_idZwebpager    r   :/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/lenta.py_real_extract&   s    
   zLentaIE._real_extractN)__name__
__module____qualname__Z_WORKINGZ
_VALID_URLintZ_TESTSr   r   r   r   r   r      s<   	  r   N)commonr   r   r   r   r   r   <module>   s   