
    yf                     &    d dl mZ  G d de      Zy)   )InfoExtractorc                   *    e Zd ZdZdddddddZd	 Zy
)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                     | j                  |      }| j                  d|z   |      d   d   d   d   }| j                  d||dd      d	   }||d
   d|z   |j                  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   s        B/usr/lib/python3/dist-packages/yt_dlp/extractor/stretchinternet.py_real_extractzStretchInternetIE._real_extract   s    >>#&''=H ""#%%*,	 ##L6B $ DDKM
 7^ 	) 99Y/
 	
    N)__name__
__module____qualname__
_VALID_URL_TESTr    r    r   r   r      s)    nJdA #

E
r    r   N)commonr   r   r&   r    r   <module>r(      s    !
 
r    