selim-ba commited on
Commit
b30ce86
·
verified ·
1 Parent(s): c04cd15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -148,7 +148,7 @@ class SuperSmartAgent:
148
  match = re.search(youtube_regex, text)
149
  if match:
150
  # Reconstruct the standard YouTube watch URL from the video ID
151
- video_id = match.group(1) # The 11-character video ID
152
  return f"https://www.youtube.com/watch?v={video_id}"
153
  return None
154
 
 
148
  match = re.search(youtube_regex, text)
149
  if match:
150
  # Reconstruct the standard YouTube watch URL from the video ID
151
+ video_id = match.group(3) # The 11-character video ID
152
  return f"https://www.youtube.com/watch?v={video_id}"
153
  return None
154