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

WIP fix: YouTube video transcrips Import #1129

Closed
wants to merge 2 commits into from

Conversation

amirtds
Copy link

@amirtds amirtds commented Apr 18, 2022

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-appsembler-tahoe-0.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

@github-actions

This comment has been minimized.

@amirtds amirtds linked an issue Apr 18, 2022 that may be closed by this pull request
@amirtds amirtds changed the title fix: YouTube video transcrips Import WIP fix: YouTube video transcrips Import Apr 18, 2022
@OmarIthawi OmarIthawi marked this pull request as draft April 18, 2022 13:21
@github-actions

This comment has been minimized.

@amirtds amirtds force-pushed the amir/juniper-youtube-transcripts-api branch from 2dd6f87 to 9a42320 Compare May 3, 2022 16:48
@github-actions

This comment has been minimized.

@amirtds amirtds force-pushed the amir/juniper-youtube-transcripts-api branch from 9a42320 to d2f9e7c Compare May 3, 2022 16:55
@github-actions

This comment has been minimized.

@amirtds amirtds force-pushed the amir/juniper-youtube-transcripts-api branch from d2f9e7c to ad57c08 Compare May 3, 2022 16:59
@github-actions

This comment has been minimized.

@amirtds amirtds force-pushed the amir/juniper-youtube-transcripts-api branch from ad57c08 to 2dbe089 Compare May 3, 2022 17:09
@github-actions

This comment has been minimized.

@amirtds amirtds force-pushed the amir/juniper-youtube-transcripts-api branch from 2dbe089 to af2e4d7 Compare May 3, 2022 18:29
@github-actions

This comment has been minimized.

@amirtds amirtds force-pushed the amir/juniper-youtube-transcripts-api branch from af2e4d7 to 09ea6e2 Compare May 4, 2022 00:42
@github-actions

This comment has been minimized.

@amirtds amirtds force-pushed the amir/juniper-youtube-transcripts-api branch from 09ea6e2 to 9687595 Compare May 4, 2022 00:46
@github-actions
Copy link

github-actions bot commented May 4, 2022

Checking git merge conflicts against https://github.com/edx/edx-platform.git

Comparing with open-release/koa.master
Benchmark conflicts with main 102
Current conflicts 104
Summary Adds 2 new conflicts. How can we do better?
New conflicting files with 'open-release/koa.master'
cms/djangoapps/contentstore/views/transcripts_ajax.py
cms/templates/js/video/transcripts/messages/transcripts-not-found.underscore
Comparing with master
Benchmark conflicts with main 295
Current conflicts 298
Summary Adds 3 new conflicts. How can we do better?
New conflicting files with 'master'
cms/djangoapps/contentstore/views/transcripts_ajax.py
cms/templates/js/video/transcripts/messages/transcripts-not-found.underscore

@amirtds amirtds closed this May 12, 2022
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