o
    i                     @   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/108779000807761862 4a5fb1470c192e493d9efd6f19e514d3108779000807761862qtzTruth video #108779000807761862ib20220807zDonald J. TrumprealDonaldTrumpz(https://truthsocial.com/@realDonaldTrump)idexttitle	timestampupload_dateuploaderuploader_iduploader_urlrepost_countcomment_count
like_count)urlmd5	info_dictzFhttps://truthsocial.com/@ProjectVeritasAction/posts/108618228543962049 fd47ba68933f9dce27accc52275be9c3108618228543962049mp4z$md5:debde7186cf83f60ff7b44dbb9444e35z$md5:de2fc49045bf92bb8dc97e56503b150fib20220709zProject Veritas ActionProjectVeritasActionz-https://truthsocial.com/@ProjectVeritasAction)r   r   r   descriptionr   r   r   r   r   r   r   r   c                 C   s   |  |}| jd| |dd}tt|d}||d d d dtt|d	p*d t|d
tt|d|t|d dt|dt|dt|ddS )Nz(https://truthsocial.com/api/v1/statuses/T)impersonate)accountusernamemedia_attachments    r    content
created_at)r%   display_namezhttps://truthsocial.com/@%sreblogs_countfavourites_countreplies_count)r   r   r   r#   r   r   r   r   r   r   r   )		_match_id_download_jsonr   r   r   getr	   r   r   )selfr   video_idstatusr    r6   J/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/truth.py_real_extract4   s"   

zTruthIE._real_extractN)__name__
__module____qualname__
_VALID_URLint_TESTSr8   r6   r6   r6   r7   r
      sF    &r
   N)
commonr   utilsr   r   r   r   r   r	   r
   r6   r6   r6   r7   <module>   s     
