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

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",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:
 
102
 
103
  if "youtube.com" in url or "youtu.be" in url:
104
  from pytubefix import YouTube
105
+ yt = YouTube(url, use_oauth=True, allow_oauth_cache=True, client="WEB")
106
  stream = yt.streams.filter(progressive=True, file_extension='mp4').first()
107
  stream.download(output_path=temp_dir, filename="video.mp4")
108
  else: