U
    g                     @   s(   d dl Z ddlmZ G dd deZdS )    N   )InfoExtractorc                   @   sD   e Zd ZdZdddddddd	gd
dd	ddidgZdZdd ZdS )EuropeanTourIEzNhttps?://(?:www\.)?europeantour\.com/dpworld-tour/news/video/(?P<id>[^/&?#$]+)zXhttps://www.europeantour.com/dpworld-tour/news/video/the-best-shots-of-the-2021-seasons/Z6287788195001Zmp4z"The best shots of the 2021 seasonsg/$@ia5136026580001zprod-importedz$md5:fdac52bc826548860edf8145ee74e71aZ20211220)	idexttitleduration	timestampZuploader_idtagsZ	thumbnailZupload_dateZskip_downloadT)urlZ	info_dictparamszFhttp://players.brightcove.net/%s/default_default/index.html?videoId=%sc                 C   sH   |  |}| ||}td| \}}|s2d}| | j||f dS )NzB(?s)brightcove-player\s?video-id="([^"]+)".*"ACCOUNT_ID":"([^"]+)"r   ZBrightcoveNew)Z	_match_idZ_download_webpageresearchgroupsZ
url_resultBRIGHTCOVE_URL_TEMPLATE)selfr   Zvideo_idZwebpageZvidZaid r   A/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/europeantour.py_real_extract   s    
 zEuropeanTourIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r   r      s    r   )r   commonr   r   r   r   r   r   <module>   s   