Skip to content

Fix: Update youtubei.js Transcript Fetching Logic - #5

Merged
labib2002 merged 1 commit into
mainfrom
fix-transcript-api
Sep 30, 2025
Merged

Fix: Update youtubei.js Transcript Fetching Logic#5
labib2002 merged 1 commit into
mainfrom
fix-transcript-api

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

The yt.getTranscript function call in background.js was causing a runtime error because it is no longer a valid function in youtubei.js v8.0.0. This fix replaces the deprecated function with the correct, multi-step API process for fetching transcripts. The new implementation first retrieves video information to find available caption tracks and then executes a get_transcript action to download the transcript data. This change successfully restores the extension's core functionality and improves error handling.


PR created automatically by Jules for task 13865063330465325120

…PI changes. The previous `yt.getTranscript` function call was causing an error because it is no longer available in the library. This commit replaces the old method with the correct multi-step process for fetching transcripts, which involves getting video info to find caption tracks and then executing a `get_transcript` action. This change restores the transcript fetching functionality and adds more specific error handling for private videos or videos without captions.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

@labib2002
labib2002 marked this pull request as ready for review September 30, 2025 19:22
@labib2002
labib2002 merged commit ef1ea33 into main Sep 30, 2025
@labib2002
labib2002 deleted the fix-transcript-api branch September 30, 2025 22:00
labib2002 added a commit that referenced this pull request Jul 10, 2026
Fix: Update youtubei.js Transcript Fetching Logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant