
    V|h,                     6    S SK Jr  SSKJrJr   " S S\5      rg)   )InfoExtractor   )int_or_nonetraverse_objc            	       @    \ rS rSrSrSSSSSSS	// S
QS.S./rS rSrg)PremiershipRugbyIE   z@https?://(?:\w+\.)premiershiprugby\.(?:com)/watch/(?P<id>[\w-]+)zPhttps://www.premiershiprugby.com/watch/full-match-harlequins-v-newcastle-falcons
0_mbkb7ldtz*Full Match: Harlequins v Newcastle Falconsmp4zhttps://open.http.mp.streamamg.com/p/3000914/sp/300091400/thumbnail/entry_id/0_mbkb7ldt//width/960/height/540/type/1/quality/75g     ͷ@video)z
Full Match
HarlequinszNewcastle Falconszgallaher premiership)idtitleext	thumbnaildurationtags
categories)url	info_dictc                 >   U R                  U5      nU R                  SU 3USS0S9S   S   nU R                  US   S   S	   U5      u  pEUS   S   S
   U[        US5      UU[        US5      [	        [        US5      SS9UR                  S5      [        US5      S.	$ )Nz;https://article-cms-api.incrowdsports.com/v2/articles/slug/clientIdPRL)querydataarticle	heroMediacontent	videoLinksourceSystemId)r   r   )r   r   videoThumbnail)r   r   metadata
msDurationi  )scaler   )r   .text)	r   
display_idr   formats	subtitlesr   r   r   r   )	_match_id_download_json#_extract_m3u8_formats_and_subtitlesr   r   get)selfr   r&   	json_datar'   subss         [/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/premiershiprugby.py_real_extract PremiershipRugbyIE._real_extract   s    ^^C(
''I*Vz51 ( 339;;DF	 @@k"9-k:JH K(34DE$!)-CD%i1[\#L<n$ow{|MM&)&y2MN

 
	
     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr1   __static_attributes__r4   r3   r0   r   r      s:    TJaA [Ic
 F
r3   r   N)commonr   utilsr   r   r   r4   r3   r0   <module>r>      s    ! -"
 "
r3   