Spaces:
Sleeping
Sleeping
Update ToolSet.py
Browse files- ToolSet.py +2 -2
ToolSet.py
CHANGED
@@ -263,7 +263,7 @@ class YouTubeFrameExtractor:
|
|
263 |
|
264 |
def download_video(self, url: str) -> str:
|
265 |
ydl_opts = {
|
266 |
-
"cookies
|
267 |
'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4',
|
268 |
'outtmpl': '%(id)s.%(ext)s',
|
269 |
}
|
@@ -334,7 +334,7 @@ class YouTubeTranscriber:
|
|
334 |
Download only the audio from a YouTube URL and return the local filename.
|
335 |
"""
|
336 |
ydl_opts = {
|
337 |
-
"cookies
|
338 |
"format": "bestaudio/best", # best available audio :contentReference[oaicite:3]{index=3}
|
339 |
"postprocessors": [{
|
340 |
"key": "FFmpegExtractAudio", # extract with FFmpeg :contentReference[oaicite:4]{index=4}
|
|
|
263 |
|
264 |
def download_video(self, url: str) -> str:
|
265 |
ydl_opts = {
|
266 |
+
"cookies": "cookies.txt",
|
267 |
'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4',
|
268 |
'outtmpl': '%(id)s.%(ext)s',
|
269 |
}
|
|
|
334 |
Download only the audio from a YouTube URL and return the local filename.
|
335 |
"""
|
336 |
ydl_opts = {
|
337 |
+
"cookies": "cookies.txt",
|
338 |
"format": "bestaudio/best", # best available audio :contentReference[oaicite:3]{index=3}
|
339 |
"postprocessors": [{
|
340 |
"key": "FFmpegExtractAudio", # extract with FFmpeg :contentReference[oaicite:4]{index=4}
|