Spaces:
Sleeping
Sleeping
Update tools/youtube.py
Browse files- tools/youtube.py +1 -3
tools/youtube.py
CHANGED
|
@@ -77,15 +77,13 @@ def extract_video_id(url_or_id: str) -> str:
|
|
| 77 |
raise ValueError(f"Invalid YouTube URL or video ID: {url_or_id}")
|
| 78 |
|
| 79 |
@mcp.tool()
|
| 80 |
-
def get_youtube_video_transcript(video_url_or_id: str, include_timestamps: bool = False)
|
| 81 |
"""Get transcript text from a YouTube video.
|
| 82 |
|
| 83 |
Args:
|
| 84 |
video_url_or_id: YouTube URL or 11-char video ID
|
| 85 |
include_timestamps: Include timestamps (default: False)
|
| 86 |
|
| 87 |
-
Returns:
|
| 88 |
-
Video title, channel name, and transcript text with optional timestamps
|
| 89 |
"""
|
| 90 |
video_id = extract_video_id(video_url_or_id)
|
| 91 |
|
|
|
|
| 77 |
raise ValueError(f"Invalid YouTube URL or video ID: {url_or_id}")
|
| 78 |
|
| 79 |
@mcp.tool()
|
| 80 |
+
def get_youtube_video_transcript(video_url_or_id: str, include_timestamps: bool = False):
|
| 81 |
"""Get transcript text from a YouTube video.
|
| 82 |
|
| 83 |
Args:
|
| 84 |
video_url_or_id: YouTube URL or 11-char video ID
|
| 85 |
include_timestamps: Include timestamps (default: False)
|
| 86 |
|
|
|
|
|
|
|
| 87 |
"""
|
| 88 |
video_id = extract_video_id(video_url_or_id)
|
| 89 |
|