
    V|h                     .    S SK rSSKJr   " S S\5      rg)    N   )InfoExtractorc                   N    \ rS rSrSrSrSrSSSSS	S
SSSSS.	S/SS0S.rS rSr	g)MotorsportIE   Fzmotorsport.comzVhttps?://(?:www\.)?motorsport\.com/[^/?#]+/video/(?:[^/?#]+/)(?P<id>[^/]+)/?(?:$|[?#])zUhttp://www.motorsport.com/f1/video/main-gallery/red-bull-racing-2014-rules-explained/z2-T3WuR-KMMmp4z%Red Bull Racing: 2014 Rules Explained   u   A new clip from Red Bull sees Daniel Ricciardo and Sebastian Vettel explain the 2014 Formula One regulations – which are arguably the most complex the sport has ever seen.	mcomstaffUC334JIYKkVnyFoNCclfZtHQ20140903zre:^https?://.+\.jpg$)	idexttitledurationdescriptionuploaderuploader_idupload_date	thumbnailYoutubeskip_downloadT)url	info_dictadd_ieparamsc                 P   U R                  U5      nU R                  X5      nU R                  SUSS S9nUc$  U R                  SUS5      nU R                  U5      $ U R                  [        R
                  R                  X5      US5      nU R                  SUS5      nS	US
U 3S.$ )Nz,<iframe id="player_iframe"[^>]+src="([^"]+)"ziframe path)defaultz8<iframe [^>]*\bsrc="(https://motorsport\.tv/embed/[^"]+)zembed iframe pathzDownloading iframezwww.youtube.com/embed/(.{11})z
youtube idurl_transparentzhttps://youtube.com/watch?v=)_type
display_idr   )	_match_id_download_webpage_html_search_regex
url_resulturllibparseurljoin_search_regex)selfr   r    webpageiframe_pathiframe
youtube_ids          U/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/motorsport.py_real_extractMotorsportIE._real_extract   s    ^^C(
((9--;Wm]a . c 11KWVikK??;//''LL  2J " '',flD
 '$1*>
 	
     N)
__name__
__module____qualname____firstlineno___WORKINGIE_DESC
_VALID_URL_TESTr/   __static_attributes__r2   r1   r.   r   r      sT    HGjJf< K#5%1

 +T
E&
r1   r   )urllib.parser%   commonr   r   r2   r1   r.   <module>r>      s     !-
= -
r1   