bstraehle commited on
Commit
2118754
·
verified ·
1 Parent(s): a6e2522

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +2 -2
crew.py CHANGED
@@ -124,7 +124,7 @@ def run_crew(question, file_path):
124
  print("##################################################################")
125
  print(url)
126
  file_path = "audio.mp4"
127
- yt = YouTube(url, client="MWEB")
128
  stream = yt.streams.filter(only_audio=True).first()
129
  stream.download(filename=file_path)
130
 
@@ -159,7 +159,7 @@ def run_crew(question, file_path):
159
  # YouTube
160
 
161
  file_path = "video.mp4"
162
- yt = YouTube(url, client="MWEB")
163
  stream = yt.streams.get_highest_resolution()
164
  stream.download(filename=file_path)
165
 
 
124
  print("##################################################################")
125
  print(url)
126
  file_path = "audio.mp4"
127
+ yt = YouTube(url, client="WEB_CREATOR")
128
  stream = yt.streams.filter(only_audio=True).first()
129
  stream.download(filename=file_path)
130
 
 
159
  # YouTube
160
 
161
  file_path = "video.mp4"
162
+ yt = YouTube(url, client="WEB_CREATOR")
163
  stream = yt.streams.get_highest_resolution()
164
  stream.download(filename=file_path)
165