
    i                     ,    d Z ddlZddlZddlmZ ddZy)z+
Utilities to get a file from the internet
    N)subprocess_callc                    t         j                  j                  |      r|syd| v rVt        j                  | d      }t        |d      5 }|j                  d      D ]  }|j                  |        	 ddd       y	 t        d| d	|g       y# 1 sw Y   yxY w# t        $ r}t        |j                  d
z         d}~ww xY w)a   Small utility to download the file at 'url' under name 'filename'.
    If url is a youtube video ID like z410eauCnH it will download the video
    using youtube-dl (install youtube-dl first !).
    If the filename already exists and overwrite=False, nothing will happen.
    N.T)streamwb   )
chunk_sizez
youtube-dlz-ozs
 A possible reason is that youtube-dl is not installed on your computer. Install it with  "pip install youtube_dl")ospathexistsrequestsgetopeniter_contentwriter   OSErrormessage)urlfilename	overwriterfdchunkes          Y/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/video/io/downloader.pydownload_webfiler      s     
ww~~h	
czLLT*(D! 	 R37   	  	 
	-\3h?@	  	   	-		 , ,- -	-s$   
)B>B B	C #B;;C )F)__doc__r
   r   moviepy.toolsr   r        r   <module>r!      s    
  )-r    