fixed pt should be pytube
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -41,7 +41,7 @@ class EndpointHandler():
|
|
41 |
"language":"en",
|
42 |
"verbose": True
|
43 |
}
|
44 |
-
yt =
|
45 |
stream = yt.streams.filter(only_audio=True)[0]
|
46 |
path_to_audio = f"{yt.video_id}.mp3"
|
47 |
stream.download(filename=path_to_audio)
|
|
|
41 |
"language":"en",
|
42 |
"verbose": True
|
43 |
}
|
44 |
+
yt = pytube.YouTube(video_url)
|
45 |
stream = yt.streams.filter(only_audio=True)[0]
|
46 |
path_to_audio = f"{yt.video_id}.mp3"
|
47 |
stream.download(filename=path_to_audio)
|