mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-09-05 07:36:36 +08:00
fix(batch): show total size in progress header again
The #228 progress redesign dropped the total size that the old batch progress message displayed. Add a TotalSize data field (actual known sizes, formatted via dlutil.FormatSize) to the batch status header template in both locales.
This commit is contained in:
@@ -152,6 +152,7 @@ func buildBatchProgressMessage(info TaskInfo, skipped []string, activeLimit int)
|
||||
uploadSpeedText := formatSpeed(uploadSpeed)
|
||||
header := localizedProgressMarkup(i18nk.BotMsgProgressBatchStatusHeader, map[string]any{
|
||||
"Total": total,
|
||||
"TotalSize": dlutil.FormatSize(info.ActualTotalSize()),
|
||||
"Completed": completed,
|
||||
"Downloaded": downloaded,
|
||||
"Waiting": waiting,
|
||||
|
||||
Reference in New Issue
Block a user