From 68ba45a858c45e8d2ee65e710c867671d4aeff89 Mon Sep 17 00:00:00 2001 From: Muhammad Arslan Date: Fri, 16 Jan 2026 20:36:03 +0500 Subject: [PATCH] fix: video_config runtime service added when loading for xBlock (#37900) Adding transcripts to Videos now goes through the new VideoConfigService instead of direct calls from the VideoBlock. However, the VideoConfigService was not added to Studio. This patch fixes transcript uploading by adding the service to Studio. --- cms/djangoapps/contentstore/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index c79fa7a0fe..779a1f218a 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -27,6 +27,7 @@ from milestones import api as milestones_api from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey, UsageKey, UsageKeyV2 from opaque_keys.edx.locator import BlockUsageLocator, LibraryContainerLocator, LibraryLocator +from openedx.core.djangoapps.video_config.services import VideoConfigService from openedx_events.content_authoring.data import DuplicatedXBlockData from openedx_events.content_authoring.signals import XBLOCK_DUPLICATED from openedx_events.learning.data import CourseNotificationData @@ -1314,7 +1315,8 @@ def load_services_for_studio(runtime, user): "settings": SettingsService(), "lti-configuration": ConfigurationService(CourseAllowPIISharingInLTIFlag), "teams_configuration": TeamsConfigurationService(), - "library_tools": LegacyLibraryToolsService(modulestore(), user.id) + "library_tools": LegacyLibraryToolsService(modulestore(), user.id), + "video_config": VideoConfigService(), } runtime._services.update(services) # lint-amnesty, pylint: disable=protected-access