
    V|h)                     6    S SK Jr  SSKJrJr   " S S\5      rg)   )InfoExtractor   )int_or_noneparse_codecsc                       \ rS rSrSrS rSrg)MinotoIE   zh(?:minoto:|https?://(?:play|iframe|embed)\.minoto-video\.com/(?P<player_id>[0-9]+)/)(?P<id>[a-zA-Z0-9]+)c                    U R                  U5      nUR                  S5      =(       d    SnUR                  S5      nU R                  SU SU S3U5      nUS   n/ nUS    GH$  nUR                  S	5      n	U	(       d  M  UR                  S
5      n
U
S:X  a#  UR	                  U R                  XSSSS95        MX  UR                  S5      =(       d    0 nUR                  UR                  S5      UR                  S5      U	U
[        UR                  S5      5      [        UR                  S5      5      [        UR                  S5      5      [        UR                  S5      5      S.[        UR                  S5      5      E5        GM'     UUS   UR                  S5      UR                  S0 5      R                  S	5      US.$ )N	player_id1idzhttp://play.minoto-video.com//z.jszvideo-metadatazvideo-filesurl	containerhlsmp4F)m3u8_idfatalprofilez
name-shortnamebitratefilesizewidthheight)	format_idformat_noter   r   tbrr   r   r   codecstitledescriptionzvideo-poster)r   r   r    	thumbnailformats)	_match_valid_urlgroup_download_jsongetextend_extract_m3u8_formatsappendr   r   )selfr   mobjr   video_id
video_datavideo_metadatar"   fmtfmt_urlr   fmt_profiles               Q/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/minoto.py_real_extractMinotoIE._real_extract   s   $$S)JJ{+2s	::d#((+HSTU]T^^a)bdlm
#$45m,CggenG,IE!t99'U\ain9op!ggi06B!,!>#.??6#:"!*&swwy'9: +CGGJ,? @()9:)#''(*;<
  #3778#45
  
 -, #G,)--m<'++NB?CCEJ
 	
     N)__name__
__module____qualname____firstlineno__
_VALID_URLr3   __static_attributes__r6   r5   r2   r   r      s    |J"
r5   r   N)commonr   utilsr   r   r   r6   r5   r2   <module>r?      s    !%
} %
r5   