o
    i                      @   s4   d dl mZ ddlmZmZmZ G dd deZdS )   )InfoExtractor   )format_fieldtraverse_objunified_timestampc                   @   s@   e Zd ZdZdddddddd	d
ddddddgZdd ZdS )LivestreamfailsIEzDhttps?://(?:www\.)?livestreamfails\.com/(?:clip|post)/(?P<id>[0-9]+)z'https://livestreamfails.com/clip/139200 8a03aea1a46e94a05af6410337463102139200mp4z3ConcernedLitigiousSalmonPeteZaroll-O8yo9W2L8OZEKhV2z-Streamer jumps off a trampoline at full speedparadeev1chzre:^https?://.+ib20220626)idext
display_idtitlecreator	thumbnail	timestampupload_date)urlmd5	info_dictz'https://livestreamfails.com/post/139200T)r   only_matchingc              
   C   s^   |  |}| d| |}||dt|dd|d  |dt|dt|dd	d
S )Nz%https://api.livestreamfails.com/clip/sourceId	createdAtz3https://livestreamfails-video-prod.b-cdn.net/video/videoIdlabel)streamerr   imageIdz5https://livestreamfails-image-prod.b-cdn.net/image/%s)r   r   r   r   r   r   r   )	_match_id_download_jsongetr   r   r   )selfr   video_idapi_response r%   T/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/livestreamfails.py_real_extract   s   

zLivestreamfailsIE._real_extractN)__name__
__module____qualname__
_VALID_URL_TESTSr'   r%   r%   r%   r&   r      s&    r   N)commonr   utilsr   r   r   r   r%   r%   r%   r&   <module>   s    