
    V|hk                     6    S SK Jr  SSKJrJr   " S S\5      rg)   )InfoExtractor   )int_or_nonejoin_nonemptyc            	       @    \ rS rSrSrSSSSSSS	S
S.S./rS rS rSrg)PerformGroupIE   zvhttps?://player\.performgroup\.com/eplayer(?:/eplayer\.html|\.js)#/?(?P<id>[0-9a-f]{26})\.(?P<auth_token>[0-9a-z]{26})zihttp://player.performgroup.com/eplayer/eplayer.html#d478c41c5d192f56b9aa859de8.1w4crrej5w14e1ed4s1ce4ykab 259cb03d142e2e52471e8837ecacb29fxgrwobuzumes1lwjxtcdpwgxdmp4z'Liga MX: Keine Einsicht nach Horrorfoulz$md5:7cd3b459c82725b021e046ab10bf1c5bi+Z20171124)idexttitledescription	timestampupload_date)urlmd5	info_dictc           	      D    U R                  SU SU SU S3UUSS.SS0S9$ )Nzhttp://ep3.performfeeds.com/ep/zhttp://player.performgroup.com)RefererOrigin_fmtjson)headersquery)_download_json)selfservice
auth_token
content_idreferer_urls        W/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/performgroup.py	_call_apiPerformGroupIE._call_api   sL    "",WIQzl!J<qQ&:!  #  	    c                    U R                  U5      R                  5       u  p#U R                  SX2U5      nUS   S   S   S   S   S   nUS   nU R                  SX6U5      nUS   S	   S   S
   n/ n	UR                  S0 5      R                  S5      n
U
(       a"  U	R	                  U R                  XSSSSS95        UR                  S0 5      R                  S5      nU(       a$  U	R	                  U R                  US-   USSS95        UR                  S/ 5       GH   nUR                  S5      nU(       d  M  [        UR                  S5      S5      nU	R                  [        SU5      UU[        UR                  S5      5      [        UR                  S5      5      [        UR                  S5      5      UR                  S5      [        UR                  S5      5      [        UR                  S5      S5      [        UR                  S5      S5      S.
5        GM     UUS    UR                  S!5      UR                  S"5      [        UR                  S#5      5      [        UR                  S$5      S5      U	S%.$ )&N	bootstrapconfig
dataSourcesourceItems    videosuuidvodvideomediahlsr   r   m3u8_nativeF)m3u8_idfatalhdsz?hdcore)f4m_idr7   contentbitratei  httpwidthheightfileSizetypevideoFrameRate	videoRate	audioRate)
	format_idr   tbrr=   r>   filesizevcodecfpsvbrabrr   r   posterdurationpublishedTime)r   r   r   	thumbnailrL   r   formats)
_match_valid_urlgroupsr&   getextend_extract_m3u8_formats_extract_f4m_formatsr   appendr   )r    r   	player_idr"   r*   r2   video_idr1   r3   rO   hls_urlhds_urlcc_urlrE   s                  r%   _real_extractPerformGroupIE._real_extract   s:    $ 5 5c : A A C	NN;
sK	(#L1-@CHMaP=nnUJ#>Hg&q)'2))E2&**51NN455gP]glty5z{))E2&**51NN444Wy5H([`hm4no9b)AEE%LEaeeI.5CNN*637$QUU7^4%aeeHo6'j(9:%%-"155)9#:;"155#5t<"155#5t<  *& 7^ 99]38,#EIIj$9:$UYY%?F
 	
r(    N)	__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr&   r]   __static_attributes__r_   r(   r%   r   r      s@     KJ {1->A#%
	 F+
r(   r   N)commonr   utilsr   r   r   r_   r(   r%   <module>ri      s    ! .E
] E
r(   