U
    g                     @   s,   d dl mZ d dlmZ G dd deZdS )   )BrightcoveNewIE)InfoExtractorc                   @   sb   e Zd ZdZ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idgZdd ZdS )	PGATourIEzBhttps?://(?:www\.)?pgatour\.com/video/[\w-]+/(?P<tc>T)?(?P<id>\d+)znhttps://www.pgatour.com/video/competition/T6322447785112/adam-hadwin-2023-the-players-round-4-18th-hole-shot-1Z6322447785112Zmp4z=Adam Hadwin | 2023 THE PLAYERS | Round 4 | 18th hole | Shot 16116716431001Z20230312i6dgA`4@zre:^https://.+\.jpgzcount:7)	idexttitleuploader_idupload_date	timestampduration	thumbnailtagsZskip_downloadZm3u8)urlZ	info_dictparamszehttps://www.pgatour.com/video/features/6322506425112/follow-the-players-trophy-on-championship-sundayZ6322506425112z0Follow THE PLAYERS trophy on Championship Sundayz$md5:4d29e4bdfa03694a0ebfd089503985686082840763001Z20230313i{dgp=
^@zcount:8)
r   r   r   descriptionr	   r
   r   r   r   r   c                 C   sL   |  |dd\}}|rdnd}|r*dnd}| d| d| d	| tS )
Nr   Ztcr   r   Z	Vsd5Umu8rZ	FWIBYMBPjzhttps://players.brightcove.net//z_default/index.html?videoId=)Z_match_valid_urlgroupZ
url_resultr   )selfr   Zvideo_idZis_tourcastZ
account_idZ	player_id r   </tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/pgatour.py_real_extract&   s    zPGATourIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r      s<   r   N)Z
brightcover   commonr   r   r   r   r   r   <module>   s   