U
    g>	                     @   s8   d dl mZmZ ddlmZmZmZ G dd deZdS )   )VidyardBaseIE	VidyardIE   )ExtractorErrormake_archive_idurl_basenamec                   @   sT   e Zd ZdZdddddddd	d
gdddddddddddgddgZdd ZdS )CellebriteIEz0https?://cellebrite\.com/(?:\w+)?/(?P<id>[\w-]+)zQhttps://cellebrite.com/en/collect-data-from-android-devices-with-cellebrite-ufed/ZZqmUss3dQfEMGpauambPuHZ16025876Zmp4zSAsk the Expert: Chat Capture - Collect Data from Android Devices in Cellebrite UFEDz$md5:dee48fe12bbae5c01fe6a053f7676da4zKhttps://cellebrite.com/wp-content/uploads/2021/05/Chat-Capture-1024x559.pnggl|@zcellebrite 16025876)id
display_idexttitledescription	thumbnailduration_old_archive_ids)urlZ	info_dictzbhttps://cellebrite.com/en/how-to-lawfully-collect-the-maximum-amount-of-data-from-android-devices/ZQV1U8a2yzcxigw7VFnqKygZ29018255zGHow to Lawfully Collect the Maximum Amount of Data From Android Devicesz$md5:0e943a9ac14c374d5d74faed634d773cz}https://cellebrite.com/wp-content/uploads/2022/07/How-to-Lawfully-Collect-the-Maximum-Amount-of-Data-From-Android-Devices.pnggGz`@zcellebrite 29018255c                 C   s   |  |}| ||}tt||d }|s4tdt|}| | |d d |}|	drtt
| |d g|d< | j|d d }r|dg d|i d	| j|d di|S )
Nz%No Vidyard video embeds found on pageZchapters    r
   r   )defaultZ
thumbnailsr   r   )Z	_match_idZ_download_webpagenextr   Z_extract_embed_urlsr   r   Z_process_video_jsonZ_fetch_video_jsongetr   Z_og_search_thumbnail
setdefaultappendZ_og_search_description)selfr   ZslugZwebpageZvidyard_urlZvideo_idinfor    r   ?/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/cellebrite.py_real_extract!   s     

 zCellebriteIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r      s2   r   N)Zvidyardr   r   utilsr   r   r   r   r   r   r   r   <module>   s   