U
    g
                     @   s@   d dl mZ ddlmZmZmZmZmZmZ G dd deZ	dS )   )InfoExtractor   )
clean_htmlformat_fieldint_or_nonestrip_or_nonetraverse_objunified_timestampc                   @   sb   e Zd ZdZdddddddd	d
deeedddddddddddddeeeddgZdd ZdS )TruthIEz2https?://truthsocial\.com/@[^/]+/posts/(?P<id>\d+)zAhttps://truthsocial.com/@realDonaldTrump/posts/108779000807761862Z 4a5fb1470c192e493d9efd6f19e514d3Z108779000807761862ZqtzTruth video #108779000807761862ibZ20220807zDonald J. TrumpZrealDonaldTrumpz(https://truthsocial.com/@realDonaldTrump)idexttitle	timestampupload_dateuploaderuploader_iduploader_urlrepost_countcomment_count
like_count)urlmd5Z	info_dictzFhttps://truthsocial.com/@ProjectVeritasAction/posts/108618228543962049Z fd47ba68933f9dce27accc52275be9c3Z108618228543962049Zmp4z$md5:debde7186cf83f60ff7b44dbb9444e35z$md5:de2fc49045bf92bb8dc97e56503b150fibZ20220709zProject Veritas ActionZProjectVeritasActionz-https://truthsocial.com/@ProjectVeritasAction)r   r   r   descriptionr   r   r   r   r   r   r   r   c                 C   s   |  |}| d| |}tt|d}||d d d dtt|dpPd t|dtt|d	|t|d d
t|dt|dt|ddS )Nz(https://truthsocial.com/api/v1/statuses/)accountusernameZmedia_attachments    r    contentZ
created_at)r   Zdisplay_namezhttps://truthsocial.com/@%sZreblogs_countZfavourites_countZreplies_count)r   r   r   r   r   r   r   r   r   r   r   )	Z	_match_idZ_download_jsonr   r   r   getr	   r   r   )selfr   Zvideo_idstatusr    r!   :/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/truth.py_real_extract4   s    

zTruthIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLintZ_TESTSr#   r!   r!   r!   r"   r
      sD   &r
   N)
commonr   utilsr   r   r   r   r   r	   r
   r!   r!   r!   r"   <module>   s    
