o
    i                     @   s    d dl mZ G dd deZdS )   )InfoExtractorc                
   @   s8   e Zd ZdZdZdddddded	d
ddZdd ZdS )SexuIEFz(https?://(?:www\.)?sexu\.com/(?P<id>\d+)zhttp://sexu.com/961791/ ff615aca9691053c94f8f10d96cd7884961791mp4z$md5:4d05a19a5fc049a63dbbaf05fb71d91bz$md5:2b75327061310a3afb3fbd7d09e2e403zre:https?://.*\.jpg$   )idexttitledescription
categories	thumbnail	age_limit)urlmd5	info_dictc                    s     |} ||}  d|d|}|d } fdd|D } d|d} d|d}|d	}	 d
|d}
|
d u rCd n|
d}||||	||ddS )Nz\.setup\(\s*({.+?})\s*\);jwvideosourcesc                    sN   g | ]#}| d r|d  dd| dt jd| ddddddqS )	file\ labelz
^(\d+)[pP]heightN)default)r   	format_idr   )getreplaceint_search_regex).0sourceself I/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/sexu.py
<listcomp>   s    

z(SexuIE._real_extract.<locals>.<listcomp>z&<title>([^<]+)\s*-\s*Sexu\.Com</title>r
   r   imagekeywordsr   ,r   )r   r
   r   r   r   formatsr   )	_match_id_download_webpage_parse_jsonr   _html_search_regex_html_search_metar   split)r"   r   video_idwebpager   r   r)   r
   r   r   categories_strr   r#   r!   r$   _real_extract   s>   


zSexuIE._real_extractN)__name__
__module____qualname___WORKING
_VALID_URLlist_TESTr3   r#   r#   r#   r$   r      s    r   N)commonr   r   r#   r#   r#   r$   <module>   s    