Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contribute: YouTube video transcripts Import fix #1094

Open
OmarIthawi opened this issue Mar 8, 2022 · 0 comments · May be fixed by #1139
Open

Contribute: YouTube video transcripts Import fix #1094

OmarIthawi opened this issue Mar 8, 2022 · 0 comments · May be fixed by #1139
Labels
upstream-contribution A suggestion for contributing changes to Open edX

Comments

@OmarIthawi
Copy link

Background

https://appsembler.atlassian.net/browse/BLACK-2163
By the end of 2021 YouTube Deprecated their Timedtext API. This caused problem for our customers to download automatically the transcripts for their YouTube video for their videos in Open edX. Open edX team is aware of this error https://openedx.atlassian.net/browse/TNL-9460, but there was no movement on solving this issue from open edx end.
We tried to solve this by replacing the API with a new YouTube API, but the new API requires OAuth authentication and only works with videos in the same channel and even with corresponding changes in the codebase the Transcripts didn't work.

Our solution

I developed a new API that responds with SRT version of transcripts for a given YouTube video ID for example https://us-central1-penn-state.cloudfunctions.net/youtube-transcript?video_id=AcZZlbWRyUM You can try this with different videos just replace what comes after video_id= with your YouTube video ID.
After receiving the Transcripts from our API we make a call to transcripts/upload to upload the transcript for a given unit component location, and we store the transcripts. To make it visible in Studio and LMS.
The functionality should work as the following video

Filmage.2022-02-28_204527.mp4
@OmarIthawi OmarIthawi added the upstream-contribution A suggestion for contributing changes to Open edX label Mar 8, 2022
@OmarIthawi OmarIthawi changed the title Contribute: YouTube video transcrips Import fix Contribute: YouTube video transcripts Import fix Mar 8, 2022
@amirtds amirtds linked a pull request Apr 18, 2022 that will close this issue
@amirtds amirtds linked a pull request May 13, 2022 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream-contribution A suggestion for contributing changes to Open edX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant