From 431a7e543f8bdc2c61a18ad8d1d5de390138ab4f Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:57:50 -0600 Subject: [PATCH] Fix --- .../com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt | 4 ++-- .../com/lagradost/cloudstream3/utils/VideoDownloadHelper.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt index 0cb2ba0f..37b2578d 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt @@ -39,12 +39,12 @@ data class VisualDownloadChildCached( ): VisualDownloadCachedAbstract(currentBytes, totalBytes, data) data class VisualDownloadHeaderCached( - val currentOngoingDownloads: Int, - val totalDownloads: Int, override val totalBytes: Long, override val currentBytes: Long, override val data: VideoDownloadHelper.DownloadHeaderCached, val child: VideoDownloadHelper.DownloadEpisodeCached?, + val currentOngoingDownloads: Int, + val totalDownloads: Int, ): VisualDownloadCachedAbstract(currentBytes, totalBytes, data) data class DownloadClickEvent( diff --git a/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadHelper.kt b/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadHelper.kt index 9deeb4bf..a2a2bbd5 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadHelper.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadHelper.kt @@ -12,11 +12,11 @@ object VideoDownloadHelper { @JsonProperty("poster") val poster: String?, @JsonProperty("episode") val episode: Int, @JsonProperty("season") val season: Int?, - @JsonProperty("id") override val id: Int, @JsonProperty("parentId") val parentId: Int, @JsonProperty("rating") val rating: Int?, @JsonProperty("description") val description: String?, @JsonProperty("cacheTime") val cacheTime: Long, + override val id: Int, ): DownloadCachedAbstract(id) data class DownloadHeaderCached( @@ -25,8 +25,8 @@ object VideoDownloadHelper { @JsonProperty("type") val type: TvType, @JsonProperty("name") val name: String, @JsonProperty("poster") val poster: String?, - @JsonProperty("id") override val id: Int, @JsonProperty("cacheTime") val cacheTime: Long, + override val id: Int, ): DownloadCachedAbstract(id) data class ResumeWatching(