o
    i                     @   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i ddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1gd2ed3d!d4d5d6d7d8d9e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-imagery e5884d80552c9b6ea8d268a2587533621284717mp4zBrilliant Noisezlhttps://i.vimeocdn.com/video/21006315-1a1e49da8b07fd908384a982b4ba9ff0268c509a474576ebdf7b1392f4acae3b-d_960Semiconductorsemiconductorzhttps://vimeo.com/semiconductori\  )idexttitle	thumbnailuploaderuploader_iduploader_urlduration)urlmd5	info_dictzchttps://aeon.co/videos/dazzling-timelapse-shows-how-microbes-spoil-our-food-and-sometimes-enrich-it 03582d795382e49f2fd0b427b55de409	759576926Wroughtzohttps://i.vimeocdn.com/video/1525599692-84614af88e446612f49ca966cf8f80eab2c73376bedd80555741c521c26f9a3e-d_1280z
Aeon Video	aeonvideozhttps://vimeo.com/aeonvideoi@  zdhttps://aeon.co/videos/chew-over-the-prisoners-dilemma-and-see-if-you-can-find-the-rational-path-out 1cfda0bf3ae24df17d00f2c0cb6cc21br   zemyi4z-O0lsr   r   u7   How to outsmart the Prisoner’s Dilemma - Lucas Hustedr   z:https://i.ytimg.com/vi_webp/emyi4z-O0ls/maxresdefault.webpr   zTED-Edr   z@TEDEdr   zhttps://www.youtube.com/@TEDEdr   iX  upload_date20200827
channel_idUCsooa4yRKGN_zEE8iknghZAplayable_in_embedTdescriptionz$md5:c0959524f08cb60f96fd010f3dfb17f3
categories	Education
like_countchannelchapterszcount:7channel_urlz8https://www.youtube.com/channel/UCsooa4yRKGN_zEE8iknghZAzcount:26public    not_live)tagsavailabilitychannel_follower_count
view_count	age_limitlive_statuscomment_countc                 C   sb   |  |}| ||}t| ||dd dthfdd}|s"tdd|v r,t|d}| |S )	Nc                 S   s   |d dkS )Nz@typeVideoObject )_vr5   r5   K/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/aeonco.py<lambda>E   s    z(AeonCoIE._real_extract.<locals>.<lambda>embedUrlF)get_allzNo embed URL found in webpagezplayer.vimeo.comzhttps://aeon.co/)		_match_id_download_webpager   _yield_json_ldr   r   r   _smuggle_referrer
url_result)selfr   video_idwebpage	embed_urlr5   r5   r8   _real_extractA   s   

zAeonCoIE._real_extractN)__name__
__module____qualname__
_VALID_URLint_TESTSrE   r5   r5   r5   r8   r      s    	
9r   N)	commonr   vimeor   utilsr   r   r   r   r5   r5   r5   r8   <module>   s    