From 444488849eb766627aa3075140021e479d6749bb Mon Sep 17 00:00:00 2001 From: LagradOst Date: Tue, 7 Dec 2021 19:17:34 +0100 Subject: [PATCH] fixed arjix download m3u8 stuff again --- .../com/lagradost/cloudstream3/utils/VideoDownloadManager.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadManager.kt b/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadManager.kt index a3454f18..c5138f11 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadManager.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadManager.kt @@ -1153,7 +1153,7 @@ object VideoDownloadManager { Triple( id, bytesDownloaded, - (bytesDownloaded / tsProgress) * totalTs + (bytesDownloaded * (totalTs / tsProgress.toFloat())).toLong(), ) ) } catch (e: Exception) { @@ -1165,7 +1165,7 @@ object VideoDownloadManager { CreateNotificationMetadata( type, bytesDownloaded, - (bytesDownloaded / tsProgress) * totalTs + (bytesDownloaded * (totalTs / tsProgress.toFloat())).toLong(), ) ) } @@ -1253,7 +1253,6 @@ object VideoDownloadManager { deleteFile() updateNotification() closeAll() - } for (ts in tsIterator) {