This commit is contained in:
2025-04-14 02:33:07 +02:00
parent fe3191d4a2
commit 26fb8b1678
3 changed files with 31 additions and 5 deletions

View File

@@ -14,7 +14,9 @@
{{ file.rel_path }}
</template>
<template v-slot:subtitle>
<v-progress-linear
:model-value="file.stats.percent" height="12" color="blue">
</v-progress-linear>
</template>
</v-list-item>
</v-list>
@@ -97,6 +99,17 @@ export default {
finished[file_id] = file;
}else if(file_id in this.dm_status.downloading){
downloading[file_id] = file;
if(file_id in this.dm_status["downloader_stats"]){
downloading[file_id]["stats"] = this.dm_status["downloader_stats"][file_id];
}else{
downloading[file_id]["stats"] = {
total_size: file.size,
downloaded_size: 0,
speed: 0,
percent: 0,
eta: 0,
};
}
}else{
waiting[file_id] = file;
}