mirror of
https://github.com/MODSetter/SurfSense
synced 2026-06-21 13:44:09 +00:00
Fix YouTube transcript API: replace deprecated get_transcript with fetch method
This commit is contained in:
@@ -136,7 +136,8 @@ async def add_youtube_video_document(
|
||||
)
|
||||
|
||||
try:
|
||||
captions = YouTubeTranscriptApi.get_transcript(video_id)
|
||||
ytt_api = YouTubeTranscriptApi()
|
||||
captions = ytt_api.fetch(video_id)
|
||||
# Include complete caption information with timestamps
|
||||
transcript_segments = []
|
||||
for line in captions:
|
||||
|
||||
Reference in New Issue
Block a user