jhtonyKoo commited on
Commit
69ccb3f
1 Parent(s): 016cccf

update yt_download

Browse files
Files changed (1) hide show
  1. utils.py +1 -2
utils.py CHANGED
@@ -3,8 +3,7 @@ import librosa
3
  import numpy as np
4
 
5
  def download_youtube_audio(url):
6
- yt = YouTube(url, use_po_token=True)
7
- # yt = YouTube(url)
8
  stream = yt.streams.filter(only_audio=True).first()
9
  filename = stream.download()
10
  audio, sr = librosa.load(filename, sr=44100, mono=False)
 
3
  import numpy as np
4
 
5
  def download_youtube_audio(url):
6
+ yt = YouTube(url)
 
7
  stream = yt.streams.filter(only_audio=True).first()
8
  filename = stream.download()
9
  audio, sr = librosa.load(filename, sr=44100, mono=False)