U
    g                      @   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/139200Z 8a03aea1a46e94a05af6410337463102Z139200Zmp4z3ConcernedLitigiousSalmonPeteZaroll-O8yo9W2L8OZEKhV2z-Streamer jumps off a trampoline at full speedZparadeev1chzre:^https?://.+ibZ20220626)idext
display_idtitlecreator	thumbnail	timestampZupload_date)urlmd5Z	info_dictz'https://livestreamfails.com/post/139200T)r   Zonly_matchingc              
   C   s^   |  |}| d| |}||dt|dd|d  |dt|dt|dd	d
S )Nz%https://api.livestreamfails.com/clip/ZsourceIdZ	createdAtz3https://livestreamfails-video-prod.b-cdn.net/video/ZvideoIdlabel)Zstreamerr   ZimageIdz5https://livestreamfails-image-prod.b-cdn.net/image/%s)r   r
   r   r   r   r   r   )Z	_match_idZ_download_jsongetr   r   r   )selfr   Zvideo_idZapi_response r   D/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/livestreamfails.py_real_extract   s    

zLivestreamfailsIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r      s$   r   N)commonr   utilsr   r   r   r   r   r   r   r   <module>   s   