fixed arjix download m3u8 stuff again

This commit is contained in:
LagradOst 2021-12-07 19:17:34 +01:00
parent a50cb9a08d
commit 444488849e

View file

@ -1153,7 +1153,7 @@ object VideoDownloadManager {
Triple( Triple(
id, id,
bytesDownloaded, bytesDownloaded,
(bytesDownloaded / tsProgress) * totalTs (bytesDownloaded * (totalTs / tsProgress.toFloat())).toLong(),
) )
) )
} catch (e: Exception) { } catch (e: Exception) {
@ -1165,7 +1165,7 @@ object VideoDownloadManager {
CreateNotificationMetadata( CreateNotificationMetadata(
type, type,
bytesDownloaded, bytesDownloaded,
(bytesDownloaded / tsProgress) * totalTs (bytesDownloaded * (totalTs / tsProgress.toFloat())).toLong(),
) )
) )
} }
@ -1253,7 +1253,6 @@ object VideoDownloadManager {
deleteFile() deleteFile()
updateNotification() updateNotification()
closeAll() closeAll()
} }
for (ts in tsIterator) { for (ts in tsIterator) {