mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Update DownloadViewModel.kt
This commit is contained in:
parent
3f1f5894d0
commit
650522993c
1 changed files with 2 additions and 4 deletions
|
@ -57,8 +57,6 @@ class DownloadViewModel : ViewModel() {
|
||||||
for (c in children) {
|
for (c in children) {
|
||||||
val childFile = VideoDownloadManager.getDownloadFileInfoAndUpdateSettings(context, c.id) ?: continue
|
val childFile = VideoDownloadManager.getDownloadFileInfoAndUpdateSettings(context, c.id) ?: continue
|
||||||
|
|
||||||
println("FFFFFFFFFFFFFFFFFFF $childFile")
|
|
||||||
|
|
||||||
if (childFile.fileLength <= 1) continue
|
if (childFile.fileLength <= 1) continue
|
||||||
val len = childFile.totalBytes
|
val len = childFile.totalBytes
|
||||||
val flen = childFile.fileLength
|
val flen = childFile.fileLength
|
||||||
|
@ -113,6 +111,6 @@ class DownloadViewModel : ViewModel() {
|
||||||
_availableBytes.postValue(localBytesAvailable)
|
_availableBytes.postValue(localBytesAvailable)
|
||||||
_downloadBytes.postValue(localDownloadedBytes)
|
_downloadBytes.postValue(localDownloadedBytes)
|
||||||
|
|
||||||
_headerCards.postValue(visual.also { println("VISUAL $it") })
|
_headerCards.postValue(visual)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue