
    hjp
                     D    S r SSKJrJr  SSKJrJrJr  \" SS9S 5       rg)	uI  
✘ Commands Available -

• `{i}yta <(youtube/any) link>`
   Download audio from the link.

• `{i}ytv <(youtube/any) link>`
   Download video  from the link.

• `{i}ytsa <(youtube) search query>`
   Search and download audio from youtube.

• `{i}ytsv <(youtube) search query>`
   Search and download video from youtube.
    )download_ytget_yt_link   )
get_stringrequestsultroid_cmdzyt(a|v|sa|sv) ?(.*))patternc                   #    SSSSS.nU R                   R                  S5      R                  5       nU R                  [	        S5      5      I S h  vN nUS:X  ag  SUS'   SUS	'   U R                   R                  S
5      nU(       d"  UR                  [	        S5      5      I S h  vN $  [
        R                  " U5        GOUS:X  ao  SUS'   SUS	'   SS0/US'   U R                   R                  S
5      nU(       d"  UR                  [	        S5      5      I S h  vN $  [
        R                  " U5        GOUS:X  a  SUS'   SUS	'    U R                  R                  SS5      S   n[        U5      nU(       d"  UR                  [	        S5      5      I S h  vN $ UR                  [	        S5      5      I S h  vN   OUS:X  a  SUS'   SUS	'   SS0/US'    U R                  R                  SS5      S   n[        U5      nU(       d"  UR                  [	        S5      5      I S h  vN $ UR                  [	        S5      5      I S h  vN   Og [        X4U5      I S h  vN   g  GN GN! [         a&    UR                  [	        S5      5      I S h  vN  s $ f = f GN! [         a&    UR                  [	        S5      5      I S h  vN  s $ f = f! [         a&    UR                  [	        S5      5      I S h  vN  s $ f = f GNo GNP! [         a&    UR                  [	        S5      5      I S h  vN  s $ f = f GN N N7f)NT)prefer_ffmpegaddmetadataz
geo-bypassnocheckcertificater   com_1a	bestaudioformatz
%(id)s.m4aouttmpl   	youtube_1	youtube_2vbestz
%(id)s.mp4keyFFmpegMetadatapostprocessors	youtube_3	youtube_4sa 	youtube_5unspl_1	youtube_6sv	youtube_7	youtube_8)pattern_matchgroupstripeorr   r   getBaseExceptiontextsplit
IndexErrorr   editr   )eventytdoptxxurlquerys         $/root/TeamUltroid/plugins/youtube.pydownload_from_youtube_r6      s     
 "	C 


#
#A
&
,
,
.CyyG,-	-B
cz#H%I!!''*
; 7888	9LL 
H%I"')9!: ;!!''*
; 7888	9LL 
#H%I	9JJ$$S!,Q/E % I!6777ffZ,---	H%I"')9!: ;	9JJ$$S!,Q/E % I!6777ffZ,---
bs
###_ 
. 9  	9
; 78888	9 9  	9
; 78888	9  	9
; 78888	9 8-  	9
; 78888	9 8- $s@  AMI#AM$I&%M*I)  AMJMJ 5MK '/ML!M8L9ML 6/M%L>&!MMMMM&M)'JJJMJM'KK	KMKM'L9K<:L?MLMM'L;2L53L;8M:L;;MMMN)	__doc__pyUltroid.fns.ytdlr   r    r   r   r   r6        r5   <module>r<      s1    8 / / !7$7$r;   