o
    i                     @   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                   @   sp   e Zd ZdZdddddddd	g d
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.html6330247525112mp4iZid z9re:^https://[\w.-]+\.prod\.boltdns\.net/[^?#]+/image\.jpg20230628z%Coco Gauff | My Wimbledon Inspiration)featurestrendinghomepage3506358525001g     A)
idext	timestampdescription	thumbnailupload_datetitletagsuploader_idduration)url	info_dictz>https://www.wimbledon.com/en_GB/video/media/6308703111112.html6308703111112null20220629zRoblox | WimbleWorld g     @r   kidsi2b)
r   r   r   r   r   r   r   r   r   r   z>https://www.wimbledon.com/en_US/video/media/6309327106112.htmlT)r   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__enurl_transparentzOhttp://players.brightcove.net/3506358525001/default_default/index.html?videoId=BrightcoveNew)_typer   ie_keyr   r   r   metadatar   )r   r   r   )	_match_id_download_jsonr   r   )selfr   video_idr%    r*   N/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/wimbledon.py_real_extract.   s   

zWimbledonIE._real_extractN)__name__
__module____qualname__
_VALID_URL_TESTSr,   r*   r*   r*   r+   r      sH    $r   N)commonr   utilsr   r   r   r*   r*   r*   r+   <module>   s    