
    V|h	                     F    S SK r SSKJr  SSKJrJrJrJr   " S S\5      rg)    N   )InfoExtractor   )determine_extint_or_noneparse_duration	qualitiesc            
       D    \ rS rSrSrSSSSSSS	S
SS.S.SSS./rS rSrg)
SunPornoIE   zShttps?://(?:(?:www\.)?sunporno\.com/videos|embeds\.sunporno\.com/embed)/(?P<id>\d+)z&http://www.sunporno.com/videos/807778/ 507887e29033502f29dba69affeebfc9807778mp4z$md5:0a400058e8105d39e35c35e7c5184164z$md5:a31241990e1bd3a64e72ae99afb325fbzre:^https?://.*\.jpg$i.     )idexttitledescription	thumbnailduration	age_limit)urlmd5	info_dictz'http://embeds.sunporno.com/embed/807778T)r   only_matchingc           
         U R                  U5      nU R                  SU 3U5      nU R                  U5      nU R                  SUS5      nU R	                  SUSSS9n[        U R                  SUSSS95      n[        U R	                  S	US
SS95      n[        U R	                  SUSSS S95      n	/ n
[        SS/5      n[        R                  " SU5       H)  n[        U5      nU
R                  UUU" U5      S.5        M+     UUUUUUU	U
SS.	$ )Nzhttp://www.sunporno.com/videos/r   zposter="([^"]+)"r   F)fatal)z)itemprop="duration"[^>]*>\s*(\d+:\d+)\s*<z(>Duration:\s*<span[^>]+>\s*(\d+:\d+)\s*<r   z)class="views">(?:<noscript>)?\s*(\d+)\s*<z
view countz(\d+)</b> Comments?zcomment count)r   defaultr   flvz<(?:source|video) src="([^"]+)")r   	format_idqualityr   )	r   r   r   r   r   
view_countcomment_countformatsr   )	_match_id_download_webpage_html_extract_title_html_search_meta_html_search_regexr   _search_regexr   r	   refindallr   append)selfr   video_idwebpager   r   r   r   r"   r#   r$   r!   	video_url	video_exts                 S/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/sunporno.py_real_extractSunPornoIE._real_extract   so   >>#&((-hZ8(D ((1,,7M3+++U , D	 "$"4"4:Zu #5 #. /
 !!8!88\ "9 "0 1
 $D$;$;"_E4 %< %A B UEN+$FPI%i0INN &"9-  Q &" $*

 
	
     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr4   __static_attributes__r7   r6   r3   r   r      sE    gJ71;A1
 9F",
r6   r   )	r+   commonr   utilsr   r   r   r	   r   r7   r6   r3   <module>rA      s!    	 ! ?
 ?
r6   