Add newline on download progress failure

This commit is contained in:
bytedream 2022-03-26 19:33:14 +01:00
parent 8e791f7e8b
commit 36ecbb0cd7
2 changed files with 10 additions and 0 deletions

View file

@ -190,6 +190,11 @@ func downloadInfo(info formatInformation, file *os.File) error {
if out.IsDev() {
downloadProgress.Prefix = out.DebugLog.Prefix()
}
defer func() {
if downloadProgress.Total != downloadProgress.Current {
fmt.Println()
}
}()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()