
    VGh@                     :    d dl Z ddlmZ ddlmZ  G d de      Zy)    N   )InfoExtractor   )int_or_nonec            
       <    e Zd ZdZdddddddd	d
dddddgZd Zy)XanimuIEz.https?://(?:www\.)?xanimu\.com/(?P<id>[^/]+)/?z6https://xanimu.com/51944-the-princess-the-frog-hentai/ 899b88091d753d92dad4cb63bbf357a7z"51944-the-princess-the-frog-hentaimp4zThe Princess + The Frog HentaizGhttps://xanimu.com/storage/2020/09/the-princess-and-the-frog-hentai.jpgz)re:^Enjoy The Princess \+ The Frog Hentaig     i@   )idexttitle	thumbnaildescriptionduration	age_limit)urlmd5	info_dictz"https://xanimu.com/huge-expansion/T)r   only_matchingc                    | j                  |      }| j                  ||      }g }dD ][  }| j                  dt        j                  |       d|||d d      }|s4|j                  |||j                  d      rdnd d       ] ||| j                  d	|d
d       xs | j                  |      | j                  d|d       | j                  d|d       t        | j                  d|dd            ddS )N)	videoHighvideoLowzvar\s+z\s*=z[\'"]([^\'"]+)[\'"])defaultcontains_patternLow)r   	format_idqualityz'[\'"]headline[\'"]:\s*[\'"]([^"]+)[\'"]r   )r   thumbnailUrlr   z duration:\s*[\'"]([^\'"]+?)[\'"]r   F)fatalr   )r   formatsr   r   r   r   r   )	_match_id_download_webpage_search_jsonreescapeappendendswith_search_regex_html_extract_title_html_search_metar   )selfr   video_idwebpager"   r   
format_urls          `/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/yt_dlp/extractor/xanimu.py_real_extractzXanimuIE._real_extract   s6   >>#&((h72 		I**"))I./t4gy$9O + QJ %!*%.%7%7%>rD  		 ''(RT[(/ ( ? dBFBZBZ[bBc//QU/V11-RV1W#D$6$67Z$+Zu %7 %F G

 
	
    N)__name__
__module____qualname__
_VALID_URL_TESTSr2    r3   r1   r   r      sE    BJG165bG
 4F"
r3   r   )r&   commonr   utilsr   r   r9   r3   r1   <module>r<      s    	 ! -
} -
r3   