U
    g                     @   s0   d dl mZ ddlmZmZ G dd deZdS )   )InfoExtractor   )parse_durationtraverse_objc                   @   sr   e Zd ZdZdddddddd	d
ddgddd
ddddddddddd
dgdd
dddddddgZdd Zd S )!WimbledonIEzChttps?://(?:www\.)?wimbledon\.com/\w+/video/media/(?P<id>\d+)\.htmlz>https://www.wimbledon.com/en_GB/video/media/6330247525112.htmlZ6330247525112Zmp4iZid z9re:^https://[\w.-]+\.prod\.boltdns\.net/[^?#]+/image\.jpgZ20230628z%Coco Gauff | My Wimbledon InspirationfeaturesZtrendingZhomepageZ3506358525001g     A)
idext	timestampdescription	thumbnailupload_datetitletagsuploader_idduration)urlZ	info_dictz>https://www.wimbledon.com/en_GB/video/media/6308703111112.htmlZ6308703111112nullZ20220629zRoblox | WimbleWorld g     @Zkidsi2b)
r	   r
   r   r   r   r   r   r   r   r   z>https://www.wimbledon.com/en_US/video/media/6309327106112.htmlT)r   Zonly_matchingz>https://www.wimbledon.com/es_Es/video/media/6308377909112.htmlc                 C   sL   |  |}| d| d|}dd| d|dt|ddd	d
thfdS )NzJhttps://www.wimbledon.com/relatedcontent/rest/v2/wim_v1/en/content/wim_v1_Z_enZurl_transparentzOhttp://players.brightcove.net/3506358525001/default_default/index.html?videoId=ZBrightcoveNew)_typer   Zie_keyr	   r   r   metadatar   )r   r   r   )Z	_match_idZ_download_jsonr   r   )selfr   Zvideo_idr    r   >/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/wimbledon.py_real_extract.   s     

 
zWimbledonIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r      sF   $r   N)commonr   utilsr   r   r   r   r   r   r   <module>   s   