
    yf9                     :    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 ]Z  }| j                  dt        j                  |      z  |||d d      }|s3|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+%s\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"   format
format_urls          9/usr/lib/python3/dist-packages/yt_dlp/extractor/xanimu.py_real_extractzXanimuIE._real_extract   s.   >>#&((h7/ 	F**?RYYv=N+NPWY_+3TTj + lJ%!'%+__U%;r  		 ''(RT[(/ ( ? dBFBZBZ[bBc//QU/V11-RV1W#D$6$67Z$+Zu %7 %F G

 
	
    N)__name__
__module____qualname__
_VALID_URL_TESTSr3    r4   r2   r   r      sE    BJG165bG
 4F"
r4   r   )r&   commonr   utilsr   r   r:   r4   r2   <module>r=      s    	 ! ,
} ,
r4   