From 2e0aa3c64c6a8f170c078e2af446f9128fd205cd Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Tue, 9 Jul 2024 21:27:11 -0600 Subject: [PATCH] Fix to use getNameFull for child episodes --- .../cloudstream3/ui/download/DownloadViewModel.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadViewModel.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadViewModel.kt index c738ff70..8d8962d7 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadViewModel.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadViewModel.kt @@ -14,6 +14,7 @@ import com.lagradost.cloudstream3.isEpisodeBased import com.lagradost.cloudstream3.isMovieType import com.lagradost.cloudstream3.mvvm.launchSafe import com.lagradost.cloudstream3.mvvm.logError +import com.lagradost.cloudstream3.utils.AppContextUtils.getNameFull import com.lagradost.cloudstream3.utils.AppContextUtils.setDefaultFocus import com.lagradost.cloudstream3.utils.DOWNLOAD_EPISODE_CACHE import com.lagradost.cloudstream3.utils.DOWNLOAD_HEADER_CACHE @@ -270,7 +271,11 @@ class DownloadViewModel : ViewModel() { } else null to item.data.name } - is VisualDownloadCached.Child -> null to item.data.name + is VisualDownloadCached.Child -> null to context.getNameFull( + item.data.name, + item.data.episode, + item.data.season + ) } }.unzip()