U
    gd                     @   s    d dl mZ G dd deZdS )   )InfoExtractorc                   @   s2   e Zd ZdZdZddddddd	d
Zdd ZdS )GlideIEz&Glide mobile video messages (glide.me)z3https?://share\.glide\.me/(?P<id>[A-Za-z0-9\-=_+]+)z.http://share.glide.me/UZF8zlmuQbe4mr+7dCiQ0w==Z 4466372687352851af2d131cfaa8a4c7zUZF8zlmuQbe4mr+7dCiQ0w==Zmp4zDamon's Glide messagez*re:^https?://.*?\.cloudfront\.net/.*\.jpg$)idexttitle	thumbnail)urlmd5Z	info_dictc              	   C   sx   |  |}| ||}| d|}| | jd|dd ddpD| |}| | jd|dd ddph| |}||||dS )	N z%<source[^>]+src=(["\'])(?P<url>.+?)\1z	video URLr   )defaultgroupzC<img[^>]+id=["\']video-thumbnail["\'][^>]+src=(["\'])(?P<url>.+?)\1zthumbnail url)r   r   r   r   )Z	_match_idZ_download_webpageZ_generic_titleZ_proto_relative_urlZ_search_regexZ_og_search_video_urlZ_og_search_thumbnail)selfr   Zvideo_idZwebpager   Z	video_urlr    r   :/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/glide.py_real_extract   s4    
    zGlideIE._real_extractN)__name__
__module____qualname__ZIE_DESCZ
_VALID_URLZ_TESTr   r   r   r   r   r      s   r   N)commonr   r   r   r   r   r   <module>   s   