Update crew.py
Browse files
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="
|
| 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="
|
| 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 |
|