jhtonyKoo commited on
Commit
4460c7f
·
1 Parent(s): 4d96acb

update yt_download

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