[feat&optimize] Group Batch Download, Optimize download logic

This commit is contained in:
acite
2025-09-27 00:37:57 +08:00
parent a89f892306
commit 5b770a965d
7 changed files with 304 additions and 146 deletions

View File

@@ -5,7 +5,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.tonyodev.fetch2.Status
class DownloadItemState(
class VideoDownloadItemState(
val id: Int,
fileName: String,
filePath: String,
@@ -15,7 +15,8 @@ class DownloadItemState(
downloadedBytes: Long,
totalBytes: Long,
klass: String,
vid: String
vid: String,
val type: String
) {
var fileName by mutableStateOf(fileName)
var filePath by mutableStateOf(filePath)