Delanoe Pirard commited on
Commit
6ed14d8
·
1 Parent(s): a614051

youtube transcript

Browse files
Files changed (1) hide show
  1. agents/video_analyzer_agent.py +1 -1
agents/video_analyzer_agent.py CHANGED
@@ -235,7 +235,7 @@ def get_youtube_transcript(video_url_or_id: str, languages: List[str] | None = N
235
 
236
  try:
237
  # Fetch available transcripts
238
- api = YouTubeTranscriptApi()
239
  transcript_list = api.list(video_id)
240
 
241
  # Try to find a transcript in the specified languages
 
235
 
236
  try:
237
  # Fetch available transcripts
238
+ api = YouTubeTranscriptApi(cookie_path="./cookies.txt")
239
  transcript_list = api.list(video_id)
240
 
241
  # Try to find a transcript in the specified languages