U
    $P‘fÎ  ã                   @   s8   d dl mZ ddlmZ ddlmZ G dd„ deƒZdS )é    )Úunicode_literalsé   )ÚInfoExtractor)ÚJWPlatformIEc                
   @   sT   e Zd ZdZdddddddd	d
œdœddddddddd
œdœdddœgZdd„ ZdS )ÚBusinessInsiderIEzLhttps?://(?:[^/]+\.)?businessinsider\.(?:com|nl)/(?:[^/]+/)*(?P<id>[^/?#&]+)zYhttp://uk.businessinsider.com/how-much-radiation-youre-exposed-to-in-everyday-life-2016-6Z ffed3e1e12a6f950aa2f7d83851b497aZcjGDb0X9Zmp4zRBananas give you more radiation exposure than living next to a nuclear power plantz$md5:0175a3baf200dd8fa658f94cade841b3Z20160611ido\W)ÚidÚextÚtitleÚdescriptionZupload_dateÚ	timestamp)ÚurlÚmd5Z	info_dictz^https://www.businessinsider.nl/5-scientifically-proven-things-make-you-less-attractive-2017-7/Z 43f438dbc6da0b89f5ac42f68529d84aZ5zJwd4FKz<Deze dingen zorgen ervoor dat je minder snel een date scoortz$md5:2af8975825d38a4fed24717bbe51db49Z20170705i€]YzQhttp://www.businessinsider.com/excel-index-match-vlookup-video-how-to-2015-2?IR=TT)r   Zonly_matchingc                 C   s<   |   |¡}|  ||¡}|  d|d¡}| jd| t ¡ |dS )N)z#data-media-id=["\']([a-zA-Z0-9]{8})z!id=["\']jwplayer_([a-zA-Z0-9]{8})z%id["\']?\s*:\s*["\']?([a-zA-Z0-9]{8})z6(?:jwplatform\.com/players/|jwplayer_)([a-zA-Z0-9]{8})zjwplatform idzjwplatform:%s)ZieÚvideo_id)Z	_match_idZ_download_webpageZ_search_regexZ
url_resultr   Zie_key)Úselfr   r   ZwebpageZjwplatform_id© r   úH/tmp/pip-unpacked-wheel-7zdooeg3/youtube_dl/extractor/businessinsider.pyÚ_real_extract%   s    
 û þzBusinessInsiderIE._real_extractN)Ú__name__Ú
__module__Ú__qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r      s4   úýúýþêr   N)Ú
__future__r   Úcommonr   Z
jwplatformr   r   r   r   r   r   Ú<module>   s   