o
    i                     @   sP   d dl Z ddlmZ ddlmZ ddlmZ ddlmZm	Z	 G dd	 d	eZ
dS )
    N   )InfoExtractor)VimeoIE   )extract_attributes)find_elementtraverse_objc                	   @   s>   e Zd ZdZdddddddd	d
ddidgdgZdd ZdS )ShieyIEz6https?://(?:www\.)?shiey\.com/videos/v/(?P<id>[^/?#]+)zChttps://www.shiey.com/videos/v/train-journey-to-edge-of-serbia-ep-2
1103409448mp4z'Train Journey To Edge of Serbia (Ep. 2)shiey iT  zre:^https?://.+)idexttitleuploaderuploader_urlduration	thumbnailskip_downloadTz$Failed to parse XML: not well-formed)url	info_dictparamsexpected_warningsc                 C   sT   |  |}| ||}t|tddddhthdtjhdthf}| t	
||t	S )Nzdata-controller
VideoEmbedT)attrvaluehtmlzdata-config-embed-video
oembedHtml)	_match_id_download_webpager   r   r   jsonloadsstr
url_resultr   _extract_url)selfr   video_idwebpageoembed_html r*   J/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/shiey.py_real_extract   s   
zShieyIE._real_extractN)__name__
__module____qualname__
_VALID_URL_TESTSr,   r*   r*   r*   r+   r	   	   s    	r	   )r!   commonr   vimeor   utilsr   utils.traversalr   r   r	   r*   r*   r*   r+   <module>   s    