GilbertClaus commited on
Commit
c2d27bc
·
1 Parent(s): 408bf2c

Update youtube.py

Browse files
Files changed (1) hide show
  1. youtube.py +1 -1
youtube.py CHANGED
@@ -31,7 +31,7 @@ def download_youtube(url, nama_channel, new_name):
31
 
32
  def youtube(link, resolusi_input):
33
  video_info = ""
34
- yt = YouTube(link)
35
  nama_channel = yt.author
36
  judul_video = yt.title.replace('/', '-').replace('\\', '-')
37
  tanggal_upload = yt.publish_date.strftime("%-d %B %Y")
 
31
 
32
  def youtube(link, resolusi_input):
33
  video_info = ""
34
+ yt = YouTube(link, on_progress_callback=None, on_complete_callback=None, proxies=None, age_restricted=True)
35
  nama_channel = yt.author
36
  judul_video = yt.title.replace('/', '-').replace('\\', '-')
37
  tanggal_upload = yt.publish_date.strftime("%-d %B %Y")