U
    g                     @   s    d dl mZ G dd deZdS )   )InfoExtractorc                   @   s,   e Zd ZdZdddddddZd	d
 ZdS )StretchInternetIEzZhttps?://portal\.stretchinternet\.com/[^/]+/(?:portal|full)\.htm\?.*?\beventId=(?P<id>\d+)zShttps://portal.stretchinternet.com/umary/portal.htm?eventId=573272&streamType=videoZ573272Zmp4z*UNIVERSITY OF MARY WRESTLING VS UPPER IOWAZ99997)idexttitleuploader_id)urlZ	info_dictc                 C   s`   |  |}| d| |d d d d }| jd||dddd	 }||d
 d| |ddS )Nz/https://core.stretchlive.com/trinity/event/tcg/    Zmediar   z>https://neo-client.stretchinternet.com/portal-ws/getEvent.jsonZasdf)ZeventIDtoken)queryeventr   zhttps://ZownerID)r   r   r   r   )Z	_match_idZ_download_jsonget)selfr   Zvideo_idZ	media_urlr    r   D/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/stretchinternet.py_real_extract   s2    
 zStretchInternetIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTr   r   r   r   r   r      s   r   N)commonr   r   r   r   r   r   <module>   s   