Skip to content

Refactor transcript fetching to use youtubei.js getTranscript method - #2

Merged
labib2002 merged 2 commits into
mainfrom
refactor-transcript-fetching
Sep 30, 2025
Merged

Refactor transcript fetching to use youtubei.js getTranscript method#2
labib2002 merged 2 commits into
mainfrom
refactor-transcript-fetching

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

This pull request refactors the YouTube transcript fetching logic. It updates the youtubei.js library to the latest version and simplifies the fetchTranscriptWithApi function by using the direct yt.getTranscript(videoId) method. This change improves code stability and maintainability.


PR created automatically by Jules for task 2656559016485061390

Update youtubei.js to the latest version to ensure access to the most recent API features and bug fixes.

Refactor the fetchTranscriptWithApi function in background.js to use the simpler and more stable yt.getTranscript(videoId) method. This removes the need for manual multi-step API calls, making the code cleaner and more maintainable.
@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.

Update youtubei.js to the latest version to ensure access to the most recent API features and bug fixes.

Refactor the fetchTranscriptWithApi function in background.js to use the simpler and more stable yt.getTranscript(videoId) method. This removes the need for manual multi-step API calls, making the code cleaner and more maintainable.
@labib2002
labib2002 marked this pull request as ready for review September 30, 2025 13:41
@labib2002
labib2002 merged commit 1820e1b into main Sep 30, 2025
@labib2002
labib2002 deleted the refactor-transcript-fetching branch September 30, 2025 17:49
labib2002 added a commit that referenced this pull request Jul 10, 2026
Refactor transcript fetching to use `youtubei.js` `getTranscript` method
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