-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat: Video editor supports transcripts [FC-0076] #36058
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
Merged
ChrisChV
merged 42 commits into
openedx:master
from
open-craft:chris/FAL-3989-video-transcripts
Feb 21, 2025
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
9cdf45f
feat: Updates to support save video with transcript in library home
ChrisChV 3885dd1
style: Fix lint
ChrisChV a723e96
feat: Updated code to get english transcript from filename
ChrisChV 1c2a575
style: Fix lint
ChrisChV 74f027f
feat: Upload transcript file as static asset in Learning Core in libr…
ChrisChV 2adacee
style: Fix lint
ChrisChV 0393829
feat: Updates to support download transcripts from youtube in vlibrar…
ChrisChV e27221e
style: Fix lint
ChrisChV 05067f6
test: Add test for download youtube transcripts in library content
ChrisChV 2f53a75
style: Fix lint
ChrisChV 5c6819a
feat: Support copy transcripts from a library
ChrisChV 95b51e8
refactor: Allow use edx_video_id (edxval) in new runtime
ChrisChV c42e223
refactor: Adds new edx_video_id when copy to course
ChrisChV 4bf3af3
refactor: Remove unnevessary code
ChrisChV 1de1d4e
feat: Support delete transcripts in library
ChrisChV a59898d
style: Fix lint
ChrisChV 9173ed8
Merge branch 'master' into chris/FAL-3989-video-transcripts
ChrisChV 590a5cd
style: Nits on the code
ChrisChV 0e54450
refactor: Update replace_transcript to verify transcript
ChrisChV 5685f16
refactor: Verify LibraryLocatorV2 in manage_video_subtitles_save to a…
ChrisChV e4f7c72
style: Add comment in transcripts_ajax.py
ChrisChV b478ac5
refactor: _get_item to avoid return isLibraryContent
ChrisChV 173a0af
refactor: studio_transcript to separate methods in separated functions
ChrisChV 4532a2a
refactor: Update code in video_handlers to avoid "static/None"
ChrisChV bb10d18
style: Fix nit
ChrisChV 0203dac
chore: Fix merge conflicts
ChrisChV a254fe4
refactor: Use usage_key in some places of the code
ChrisChV 34e5cbc
refactor: _import_transcripts created in helpers.py
ChrisChV c73f82c
refactor: save_video_transcript_in_learning_core created
ChrisChV ddb6953
refactor: _studio_transcript_upload in video_handlers
ChrisChV 46aa8ca
refactor: transcripts_ajax to avoid use edx_video_id in filenames in …
ChrisChV 5bb426f
refactor: Update _get_item in transcripts_ajax to use check_permissio…
ChrisChV 5dda777
refactor: Delete lib_permissions from content_libraries/api.py
ChrisChV 53f42fa
style: Fix typos in comments in video_handlers.py
ChrisChV 9c7e4e8
style: Update comment of test_export_to_xml_without_video_id
ChrisChV 8c6a3dd
fix: Fix tests and lint
ChrisChV 0745f09
fix: Sync transcripts in video blocks from library to course
ChrisChV eff9d04
test: Tests for sync video block
ChrisChV 4973037
style: Fix lint
ChrisChV 6903be2
style: Nits and comments in the code
ChrisChV e6ae3ad
style: Fix lint
ChrisChV be65caa
Merge branch 'master' into chris/FAL-3989-video-transcripts
ChrisChV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing a bug when I sync a LibraryBlock video with transcripts from an upstream video.
Steps to reproduce:
Note that the transcripts are displaying fine here.
Note that the upstream video preview shows its transcripts fine, but the downstream (course) video preview doesn't show its transcripts anymore.
Note that the course video no longer shows its transcripts, but if you edit it, you can see they're still there.
Syncing.upstream.video.breaks.transcripts.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is related to openedx/modular-learning#246
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChrisChV That could very well be.. however I don't think it's resolved by @DanielVZ96 's #36173, but it's also possible that I didn't merge conflicts accurately. cf my merged branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pomegranited To be safe, I will wait until #36173 is ready to fix this bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries @ChrisChV , thank you for keeping an eye on this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bradenmacdonald @pomegranited I fixed this on 0745f09. I need to add tests, but you can test the fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ChrisChV -- your fix is an improvement, but now I'm seeing a slightly different bug in the "updates available" preview.
Steps to reproduce:
Note that the transcripts are displaying fine here (despite the message about needing to upload transcript files??)
Bug: the downstream (course) video preview shows the updated English transcript from upstream, not the actual transcript that's on the downstream block.
Sync works fine (sorry, screencapture below doesn't show this step, but it does work :) )
Transcripts.sync.bug.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pomegranited! Do you think we can move that issue to another ticket? I've already spent a lot of budget on this task, and it's getting much bigger every time 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChrisChV Yes I think so -- the syncing works, it's just the preview that's oddly borked. And AFAIK, syncing was out of scope here anyway :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I created the issue: openedx/frontend-app-authoring#1682