o
    i                     @   s0   d dl mZ ddlmZmZ G dd deZdS )   )InfoExtractor   )int_or_noneparse_iso8601c                   @   sD   e Zd ZdZdZdZdddddd	d
dddeeeddZdd ZdS )VideofyMeIEFzEhttps?://(?:www\.videofy\.me/.+?|p\.videofy\.me/v)/(?P<id>\d+)(&|#|$)z
videofy.mez-http://www.videofy.me/thisisvideofyme/1100701 c77d700bdc16ae2e9f3c26019bd961431100701mp4zThis is VideofyMe 20130326ieQQ	VideofyMethisisvideofyme)idexttitledescriptionupload_date	timestampuploaderuploader_id
view_count
like_countcomment_count)urlmd5	info_dictc                 C   s   |  |}| d| d|d }|d}|di }||d |d d d	 |d
|dt|d|d|dt| jd|ddddt|dt|ddS )Nz+http://vf-player-info-loader.herokuapp.com/z.json	videoinfovideoblogr   sourcessourcer   thumbr   datename
identifierz([0-9]+)viewsz
view countF)fatallikesnrOfComments)r   r   r   	thumbnailr   r   r   r   r   r   r   )	_match_id_download_jsongetr   r   _search_regex)selfr   video_idconfigr   r    r1   N/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/videofyme.py_real_extract   s    

zVideofyMeIE._real_extractN)	__name__
__module____qualname___WORKING
_VALID_URLIE_NAMEint_TESTr3   r1   r1   r1   r2   r      s(    r   N)commonr   utilsr   r   r   r1   r1   r1   r2   <module>   s    