U
    $Pf                     @   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	Zd
d ZdS )GPUTechConfIEzFhttps?://on-demand\.gputechconf\.com/gtc/2015/video/S(?P<id>\d+)\.htmlz:http://on-demand.gputechconf.com/gtc/2015/video/S5156.htmlZ a8862a00a0fd65b8b43acc5b8e33f798Z5156Zmp4zICoordinating More Than 3 Million CUDA Threads for Social Network Analysisi  )idexttitleduration)urlmd5Z	info_dictc                 C   sL   |  |}| ||}| jd|ddd}| d|d}d|d||f d	d
S )Nzvar\s+rootPath\s*=\s*"([^"]+)z	root pathz+http://evt.dispeak.com/nvidia/events/gtc15/)defaultzvar\s+xmlFileId\s*=\s*"([^"]+)zxml file idZurl_transparentz%sxml/%s.xmlZDigitallySpeaking)_typer   r
   Zie_key)Z	_match_idZ_download_webpageZ_search_regex)selfr
   Zvideo_idZwebpage	root_pathZxml_file_id r   D/tmp/pip-unpacked-wheel-7zdooeg3/youtube_dl/extractor/gputechconf.py_real_extract   s$    
    
zGPUTechConfIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTr   r   r   r   r   r      s   r   N)
__future__r   commonr   r   r   r   r   r   <module>   s   