o
    ˆ¬iË  ã                   @   sD   d dl mZ d dlmZ ddlmZ ddlmZ G dd„ deƒZdS )	é   )ÚBrightcoveNewIE)ÚInfoExtractoré   )Úurl_or_none)Útraverse_objc                   @   s\   e Zd ZdZdddddgddd	d
dddœ
dœddddddddgddddœ
dœgZdd„ ZdS )Ú	DrTalksIEz5https?://(?:www\.)?drtalks\.com/videos/(?P<id>[\w-]+)z_https://drtalks.com/videos/six-pillars-of-resilience-tools-for-managing-stress-and-flourishing/Ú6366193757112Úmp4Ú6314452011001Ú
resiliencez$md5:9c6805aee237ee6de8052461855b9ddaiãcgzWhttps://drtalks.com/wp-content/uploads/2024/12/Episode-82-Eva-Selhub-DrTalks-Thumbs.jpgzDSix Pillars of Resilience: Tools for Managing Stress and Flourishingg¾Ÿ/]á¥@Ú20241218)
ÚidÚextÚuploader_idÚtagsÚdescriptionÚ	timestampÚ	thumbnailÚtitleÚdurationÚupload_date)ÚurlÚ	info_dictzYhttps://drtalks.com/videos/the-pcos-puzzle-mastering-metabolic-health-with-marcelle-pick/Ú6364699891112z>The PCOS Puzzle: Mastering Metabolic Health with Marcelle Pickz$md5:e87cbe00ca50135d5702787fc4043aaaz\https://drtalks.com/wp-content/uploads/2024/11/Episode-34-Marcelle-Pick-OBGYN-NP-DrTalks.jpggfffffv«@ÚpcosÚ20241114i·ÿ5g)
r   r   r   r   r   r   r   r   r   r   c                 C   sz   |   |¡}|  ||¡}|  ||¡d d d d }| j|d d t|fddit|d	thfdd
thfdddthfdœƒ¤ŽS )NÚpropsÚ	pagePropsÚdataÚvideoÚvideosÚbrightcoveVideoLinkÚurl_transparentTr   ÚsummuryÚfeaturedImageÚnodeÚ	sourceUrl)r   r   r   )Ú	_match_idÚ_download_webpageÚ_search_nextjs_dataÚ
url_resultr   r   Ústrr   )Úselfr   Úvideo_idÚwebpageÚ	next_data© r0   úL/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/drtalks.pyÚ_real_extract'   s   
ÿþ
ýýzDrTalksIE._real_extractN)Ú__name__Ú
__module__Ú__qualname__Ú
_VALID_URLÚ_TESTSr2   r0   r0   r0   r1   r      s<    öþöþòr   N)	Ú
brightcover   Úcommonr   Úutilsr   Úutils.traversalr   r   r0   r0   r0   r1   Ú<module>   s
    