EdgarDataScientist commited on
Commit
183e6ec
·
verified ·
1 Parent(s): 6499509

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -102,7 +102,7 @@ def download_and_extract_audio(url):
102
 
103
  if "youtube.com" in url or "youtu.be" in url:
104
  from pytubefix import YouTube
105
- yt = YouTube(url,use_po_token=True,client="WEB",by_pass_age_gate=True)
106
  stream = yt.streams.filter(progressive=True, file_extension='mp4').first()
107
  stream.download(output_path=temp_dir, filename="video.mp4")
108
  else:
 
102
 
103
  if "youtube.com" in url or "youtu.be" in url:
104
  from pytubefix import YouTube
105
+ yt = YouTube(url,use_po_token=True,client="WEB",bypass_age_gate=True)
106
  stream = yt.streams.filter(progressive=True, file_extension='mp4').first()
107
  stream.download(output_path=temp_dir, filename="video.mp4")
108
  else: