openedx / openedx/openedx-platform
Implement video duration extraction for YouTube-hosted content
Open
@dwong2708 is already working on this.
Since Jul 4, 2025.
- Dominant language
- Python
- Stars
- 8.2k
- Forks
- 4.4k
- Avg merge
- 6d 18h
- Merged PRs (30d)
- 42
Description
Description
To collect the duration of all videos in a course, we can start by retrieving this information for YouTube-hosted videos. The process should be asynchronous to avoid negatively impacting the user experience, especially due to the latency of external API requests.
Acceptance Criteria
- Retrieve video duration using the Google (YouTube) API
- Trigger an asynchronous task via Celery when
XBLOCK_UPDATEDis received - Store the duration value in the module store
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.