Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def extract_yt_audio(video_url):
|
|
21 |
"""
|
22 |
|
23 |
if "youtube.com" in video_url or "youtu.be" in video_url:
|
24 |
-
yt = YouTube(video_url, use_po_token=
|
25 |
a = yt.streams.filter(only_audio=True).first()
|
26 |
audio_file = a.download()
|
27 |
sample = AudioSegment.from_file(audio_file)
|
|
|
21 |
"""
|
22 |
|
23 |
if "youtube.com" in video_url or "youtu.be" in video_url:
|
24 |
+
yt = YouTube(video_url, use_po_token=False)
|
25 |
a = yt.streams.filter(only_audio=True).first()
|
26 |
audio_file = a.download()
|
27 |
sample = AudioSegment.from_file(audio_file)
|