
    V|hG                     N    S SK Jr  SSKJrJrJrJrJrJrJ	r	J
r
   " S S\5      rg)   )InfoExtractor   )determine_extfloat_or_noneint_or_noneparse_age_limit	qualitiesrandom_birthdayunified_timestampurljoinc                       \ rS rSrSrSrS\ S\ S3rS\ \ S3/rSS	S
SSSSSSSSS.	S.SSS.SSS./rSSSSSSSSSSS.	S ./r	S! r
S"rg#)$VideoPressIE   z[\da-zA-Z]{8}z!video(?:\.word)?press\.com/embed/z	https?://z(?P<id>)z+<iframe[^>]+src=["\'](?P<url>(?:https?://)?z%https://videopress.com/embed/kUJmAcSf 706956a6c875873d51010921310e4bc6kUJmAcSfmp4zVideoPress Demo g     ؃@z1re:https?://videos\.files\.wordpress\.com/.+\.jpgiU20150622    )	idexttitledescriptionduration	thumbnail	timestampupload_date	age_limit)urlmd5	info_dictz%https://videopress.com/embed/iH3gstfZT)r    only_matchingz*https://video.wordpress.com/embed/kUJmAcSfz)https://wordpress.com/support/videopress/BZHMfMfNzvideopress exampleg3@iR(?h20250603)	r   r   r   r   r   r   r   r   r   )r    r"   c                    U R                  U5      n[        SSS5      nSUS'   U R                  SU 3X#S9nUS   nUR                  S	5      =(       d    0 nUR                  S
5      =(       d    UR                  S5      nSn[	        U5      n	/ n
UR                  S5      =(       d    0 R                  5        Hp  u  p[        U[        5      (       d  M  UR                  5        H@  u  pUS;   d  M  U
R                  [        X~5      U SU 3[        X5      U	" U5      S.5        MB     Mr     UR                  S5      nU(       aP  U
R                  US[        U5      [        UR                  S5      5      [        UR                  S5      5      S.5        UUUR                  S5      UR                  S5      [        UR                  S5      S5      [        UR                  S5      5      [        UR                  S5      5      U
S.$ )N
birth_yearbirth_month	birth_dayz^description,duration,file_url_base,files,height,original,poster,rating,title,upload_date,widthfieldsz2https://public-api.wordpress.com/rest/v1.1/videos/)queryr   file_url_basehttpshttp)stddvdhdfiles)r   ogg-)r    	format_idr   qualityoriginalwidthheight)r    r5   r6   r8   r9   r   posterr   i  r   rating)r   r   r   r   r   r   r   formats)	_match_idr
   _download_jsongetr	   items
isinstancedictappendr   r   lenr   r   r   r   )selfr    video_idr+   videor   r,   base_url	QUALITIESr6   r<   r5   fr   pathoriginal_urls                   U/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/videopress.py_real_extractVideoPressIE._real_extract8   s   >>#&m[Izh##@
K $ # g		/28b $$W-J1B1B61J(	I&"YYw/52<<>LIa&&WWY	.(NN&x6(1{!C5%9,T7#*9#5	$  ' ? yy,NN#'y>$UYYw%78%eii&9:   99]38,%eii
&;TB*599]+CD(8)<=	
 		
     N)__name__
__module____qualname____firstlineno__	_ID_REGEX_PATH_REGEX
_VALID_URL_EMBED_REGEX_TESTS_WEBPAGE_TESTSrN   __static_attributes__rQ   rP   rM   r   r      s     I6Kk]')A>JB;-PY{Z[\]L61&M#%

  7
 <%F. ;)M#%

 N0
rP   r   N)commonr   utilsr   r   r   r   r	   r
   r   r   r   rQ   rP   rM   <module>r_      s%    !	 	 	Z
= Z
rP   