tomiwa1a commited on
Commit
47e7453
1 Parent(s): f376027

fixed pt should be pytube

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -41,7 +41,7 @@ class EndpointHandler():
41
  "language":"en",
42
  "verbose": True
43
  }
44
- yt = pt.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)
 
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)