From 6ad5b1014c6274337f193fc6d2c1412f37773b82 Mon Sep 17 00:00:00 2001 From: jawad khan Date: Fri, 8 Nov 2024 11:06:34 +0500 Subject: [PATCH] feat: Add deprecate_youtube flag in course blocks api (#35754) --- lms/djangoapps/mobile_api/course_info/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/djangoapps/mobile_api/course_info/views.py b/lms/djangoapps/mobile_api/course_info/views.py index affefafe5ba0..0a173863db13 100644 --- a/lms/djangoapps/mobile_api/course_info/views.py +++ b/lms/djangoapps/mobile_api/course_info/views.py @@ -28,6 +28,7 @@ MobileCourseEnrollmentSerializer ) from openedx.core.djangoapps.content.course_overviews.models import CourseOverview +from openedx.core.djangoapps.video_pipeline.config.waffle import DEPRECATE_YOUTUBE from openedx.core.lib.api.view_utils import view_auth_classes from openedx.core.lib.xblock_utils import get_course_update_items from openedx.features.course_experience import ENABLE_COURSE_GOALS @@ -341,6 +342,7 @@ def list(self, request, **kwargs): # pylint: disable=W0221 kwargs={'api_version': api_version, 'course_id': course_id}, request=request, ), + 'deprecate_youtube': DEPRECATE_YOUTUBE.is_enabled(course_key) } course_info_context = {}