ORromu commited on
Commit
61523d0
·
verified ·
1 Parent(s): e74fa3f

Update tool.py

Browse files
Files changed (1) hide show
  1. tool.py +3 -3
tool.py CHANGED
@@ -143,9 +143,9 @@ def analyze_excel_file(file_path: str, query: str) -> str:
143
 
144
  def extract_video_id(youtube_url: str) -> str | None:
145
  """Extract the video ID from a YouTube URL.
146
- Supports standard and shortened formats like:
147
- - https://www.youtube.com/watch?v=VIDEO_ID
148
- - https://youtu.be/VIDEO_ID
149
  """
150
  try:
151
  parsed_url = urlparse(youtube_url)
 
143
 
144
  def extract_video_id(youtube_url: str) -> str | None:
145
  """Extract the video ID from a YouTube URL.
146
+
147
+ Args:
148
+ youtube_url (str): Url of the youtube video. Supports standard and shortened formats like https://www.youtube.com/watch?v=VIDEO_ID and https://youtu.be/VIDEO_ID .
149
  """
150
  try:
151
  parsed_url = urlparse(youtube_url)