diff --git a/course/src/main/java/org/openedx/course/presentation/unit/container/CourseUnitContainerAdapter.kt b/course/src/main/java/org/openedx/course/presentation/unit/container/CourseUnitContainerAdapter.kt index 6c558ff59..d14421714 100644 --- a/course/src/main/java/org/openedx/course/presentation/unit/container/CourseUnitContainerAdapter.kt +++ b/course/src/main/java/org/openedx/course/presentation/unit/container/CourseUnitContainerAdapter.kt @@ -34,7 +34,7 @@ class CourseUnitContainerAdapter( isDownloaded = true viewModel.getDownloadModelById(block.id)!!.path } else getPreferredVideoInfoForStreaming(viewModel.videoQuality).url - if (videoUrl.isNotEmpty()) { + if (videoUrl.isNotEmpty() && videoUrl != youtube?.url) { VideoUnitFragment.newInstance( block.id, viewModel.courseId,