Skip to content

Commit

Permalink
fix: issue if preferred video for streaming is youtube video
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-arshad-dev committed Oct 30, 2024
1 parent 30a63c6 commit 0f39a4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0f39a4f

Please sign in to comment.