U
    g                     @   s@   d dl mZ d dlmZ ddlmZmZmZ G dd deZdS )   )InfoExtractor)VimeoIE   )ExtractorErrortraverse_objurl_or_nonec                   @   s   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dddddddddddd d!d"d#d$gedd%d&d'd(eed)d*ed+dgZd,d- Zd.S )/AeonCoIEz1https?://(?:www\.)?aeon\.co/videos/(?P<id>[^/?]+)zdhttps://aeon.co/videos/raw-solar-storm-footage-is-the-punk-rock-antidote-to-sleek-james-webb-imageryZ e5884d80552c9b6ea8d268a258753362Z1284717Zmp4zBrilliant Noisezlhttps://i.vimeocdn.com/video/21006315-1a1e49da8b07fd908384a982b4ba9ff0268c509a474576ebdf7b1392f4acae3b-d_960ZSemiconductorZsemiconductorzhttps://vimeo.com/semiconductori\  )idexttitle	thumbnailuploaderuploader_iduploader_urlduration)urlmd5Z	info_dictzchttps://aeon.co/videos/dazzling-timelapse-shows-how-microbes-spoil-our-food-and-sometimes-enrich-itZ 03582d795382e49f2fd0b427b55de409Z	759576926ZWroughtzohttps://i.vimeocdn.com/video/1525599692-84614af88e446612f49ca966cf8f80eab2c73376bedd80555741c521c26f9a3e-d_1280z
Aeon VideoZ	aeonvideozhttps://vimeo.com/aeonvideoi@  zdhttps://aeon.co/videos/chew-over-the-prisoners-dilemma-and-see-if-you-can-find-the-rational-path-outZ 1cfda0bf3ae24df17d00f2c0cb6cc21bzemyi4z-O0lsu7   How to outsmart the Prisoner’s Dilemma - Lucas Hustedz:https://i.ytimg.com/vi_webp/emyi4z-O0ls/maxresdefault.webpzTED-Edz@TEDEdzhttps://www.youtube.com/@TEDEdiX  Z20200827ZUCsooa4yRKGN_zEE8iknghZATz$md5:c0959524f08cb60f96fd010f3dfb17f3Z	Educationzcount:7z8https://www.youtube.com/channel/UCsooa4yRKGN_zEE8iknghZAzcount:26public    Znot_live)r	   r
   r   r   r   r   r   r   Zupload_dateZ
channel_idZplayable_in_embeddescription
categoriesZ
like_countZchannelZchaptersZchannel_urltagsZavailabilityZchannel_follower_countZ
view_countZ	age_limitZlive_statusZcomment_countc                 C   sb   |  |}| ||}t| ||dd dthfdd}|sDtdd|krXt|d}| |S )	Nc                 S   s   |d dkS )Nz@typeZVideoObject )_vr   r   ;/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/aeonco.py<lambda>E       z(AeonCoIE._real_extract.<locals>.<lambda>ZembedUrlF)get_allzNo embed URL found in webpagezplayer.vimeo.comzhttps://aeon.co/)	Z	_match_idZ_download_webpager   Z_yield_json_ldr   r   r   Z_smuggle_referrerZ
url_result)selfr   Zvideo_idZwebpageZ	embed_urlr   r   r   _real_extractA   s    
  zAeonCoIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLintZ_TESTSr    r   r   r   r   r      sn   9r   N)	commonr   Zvimeor   utilsr   r   r   r   r   r   r   r   <module>   s   