U
    $Pf
                     @   sH   d dl mZ d dlZddlmZ ddlmZmZmZ G dd deZ	dS )	    )unicode_literalsN   )InfoExtractor   )int_or_noneparse_durationparse_iso8601c                   @   s@   e Zd ZdZdddddddd	d
ddeddgddZdd ZdS )AirMozillaIEz/https?://air\.mozilla\.org/(?P<id>[0-9a-z-]+)/?zXhttps://air.mozilla.org/privacy-lab-a-meetup-for-privacy-minded-people-in-san-francisco/Z 8d02f53ee39cf006009180e21df1f3baZ6x4q2wZmp4zAPrivacy Lab - a meetup for privacy minded people in San Franciscozre:https?://.*/poster\.jpgzBrings together privacy professionals and others interested in privacy at for-profits, non-profits, and NGOs in an effort to contribute to the state of the ecosystem...ipTZ20150128zSFO Commonsi  ZMainZPrivacy)idexttitleZ	thumbnaildescription	timestampZupload_datelocationduration
view_count
categories)urlmd5	info_dictc                 C   s   |  |}| ||}| d|d}| d||}| | d|d|d }| ||}t| jd|dd	d
}t| jd|dd	d
}	t	| jd|dd	d
}
|
|| || ||| ||	| jd|dd d|
|td|d
 |S )Nz//vid\.ly/(.*?)/embedr
   zhttps://vid.ly/{0}/embedzinitCallback\((.*)\);metadataconfigzViews since archived: ([0-9]+)z
view countF)fatalz<time datetime="(.*?)"r   z+Duration:\s*(\d+\s*hours?\s*\d+\s*minutes?)r   zLocation: (.*)r   )defaultz'<a href=".*?" class="channel">(.*?)</a>)
r
   r   r   
display_idr   r   r   r   r   r   )Z	_match_idZ_download_webpageZ_html_search_regexformatZ_parse_jsonZ_search_regexZ_parse_jwplayer_datar   r   r   updateZ_og_search_titleZ_og_search_urlZ_og_search_descriptionrefindall)selfr   r   ZwebpageZvideo_idZembed_scriptZjwconfigr   r   r   r    r    C/tmp/pip-unpacked-wheel-7zdooeg3/youtube_dl/extractor/airmozilla.py_real_extract"   sZ    
         
zAirMozillaIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLintZ_TESTr"   r    r    r    r!   r	      s"   r	   )

__future__r   r   commonr   utilsr   r   r   r	   r    r    r    r!   <module>   s   