Update app.py
Browse files
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,
|
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:
|