
    =Ґi                     B    d dl mZ d dlmZ ddlmZmZ  G d de      Zy)   )YoutubeTabBaseInfoExtractor)	YoutubeIE   )ExtractorErrortraverse_objc                       e Zd ZdZdZdi dddddd	d
dddddddddgdddddddddedddd d!d"d#d$d%dd&d'ed(ed)ed*d+d,d-gZd. Zy/)0YoutubeClipIEzyoutube:clipz4https?://(?:www\.)?youtube\.com/clip/(?P<id>[^/?#]+)z7https://www.youtube.com/clip/UgytZKpehg-hEMBSn3F4AaABCQidzUgytZKpehg-hEMBSn3F4AaABCQextmp4section_startg      =@section_endgC@durationgffffff%@	age_limit    availabilitypublic
categoriesGamingchannelzScott The Woz
channel_idUC4rqhyiTs7XyuODcECvuiiQchannel_urlz8https://www.youtube.com/channel/UC4rqhyiTs7XyuODcECvuiiQdescriptionz$md5:7a4517a17ea9b4bd98996399d8bb36e7
like_countplayable_in_embedTtagszcount:17	thumbnailz:https://i.ytimg.com/vi_webp/ScPX26pdQik/maxresdefault.webptitlez'Mobile Games on Console - Scott The Woz20210920z@ScottTheWozz$https://www.youtube.com/@ScottTheWoznot_livezcount:20z	count:100clip)upload_dateuploaderuploader_iduploader_url
view_countlive_statuschannel_follower_countchapterscomment_countheatmap
media_type)url	info_dictc           
         | j                  |      }| j                  ||      \  }}t        |d      }|st        d      t        |dd      }dd| t	        j
                         |dt        |d	         d
z  t        |d         d
z  ddS )N)currentVideoEndpointwatchEndpointvideoIdzUnable to find video ID)engagementPanels."engagementPanelSectionListRenderercontentclipSectionRenderercontents.clipAttributionRendereronScrubExitcommandExecutorCommandcommands.openPopupActionpopupnotificationActionRendereractionButtonbuttonRenderercommandr;   r<   .loopCommandF)get_allurl_transparentz https://www.youtube.com/watch?v=r"   startTimeMsi  	endTimeMs)
zproto:httpsqualityresfpszhdr:12sourcevcodecchannelsacodeclang)_typer.   ie_keyr
   r-   r   r   _format_sort_fields)	_match_id_extract_webpager   r   r   rQ   int)selfr.   clip_id_datavideo_id	clip_datas          W/var/www/descvideos/venv/lib/python3.12/site-packages/yt_dlp/extractor/youtube/_clip.py_real_extractzYoutubeClipIE._real_extract,   s    ..%''W54&Z[ !:;;  (F PU	V	 '5hZ@&&(  =!9:TAy56=$t

 
	
    N)__name__
__module____qualname__IE_NAME
_VALID_URLrU   _TESTSr]    r^   r\   r	   r	      s!   GHJ I
.
5
 T
 4	

 
 
 H
 8*
 
 4
 U
 A
 #
  
 J
  U!
" >#
$ &')B%&)" " 9
! !FF
r^   r	   N)_tabr   _videor   utilsr   r   r	   re   r^   r\   <module>ri      s    -  1>
/ >
r^   