o
    i                     @   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=video573272mp4z*UNIVERSITY OF MARY WRESTLING VS UPPER IOWA99997)idexttitleuploader_id)url	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/    mediar   z>https://neo-client.stretchinternet.com/portal-ws/getEvent.jsonasdf)eventIDtoken)queryeventr	   zhttps://ownerID)r   r	   r   r
   )	_match_id_download_jsonget)selfr   video_id	media_urlr    r   T/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/stretchinternet.py_real_extract   s0   

zStretchInternetIE._real_extractN)__name__
__module____qualname__
_VALID_URL_TESTr   r   r   r   r   r      s    r   N)commonr   r   r   r   r   r   <module>   s    