U
    $P‘f|  ã                   @   s,   d dl mZ ddlmZ G dd„ deƒZdS )é    )Úunicode_literalsé   )ÚInfoExtractorc                
   @   s>   e Zd ZdZdddddddd	d
dœddidœZdZdd„ ZdS )Ú	TheStarIEz;https?://(?:www\.)?thestar\.com/(?:[^/]+/)*(?P<id>.+)\.htmlz`http://www.thestar.com/life/2016/02/01/mankind-why-this-woman-started-a-men-s-skincare-line.htmlZ 2c62dd4db2027e35579fefb97a8b6554Z4732393888001Zmp4z6Mankind: Why this woman started a men's skin care linezBRobert Cribb talks to Young Lee, the founder of Uncle Peter's MAN.Z794267642001iJ¬¯VZ20160201)ÚidÚextÚtitleÚdescriptionZuploader_idÚ	timestampZupload_dateZskip_downloadT)ÚurlÚmd5Z	info_dictÚparamszPhttp://players.brightcove.net/794267642001/default_default/index.html?videoId=%sc                 C   s8   |   |¡}|  ||¡}|  d|d¡}|  | j| d|¡S )Nz0mainartBrightcoveVideoId["\']?\s*:\s*["\']?(\d+)zbrightcove idZBrightcoveNew)Z	_match_idZ_download_webpageZ_search_regexZ
url_resultÚBRIGHTCOVE_URL_TEMPLATE)Úselfr   Z
display_idZwebpageZbrightcove_id© r   ú@/tmp/pip-unpacked-wheel-7zdooeg3/youtube_dl/extractor/thestar.pyÚ_real_extract   s    
 þ þzTheStarIE._real_extractN)Ú__name__Ú
__module__Ú__qualname__Z
_VALID_URLZ_TESTr   r   r   r   r   r   r      s"   ù þôr   N)Ú
__future__r   Úcommonr   r   r   r   r   r   Ú<module>   s   