fix progress indicator (whoops lol)

This commit is contained in:
ari melody 2026-01-30 14:45:58 +00:00
parent 4752e4bf4c
commit 45966d40ae
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -224,7 +224,7 @@ func UploadVideo(ctx context.Context, token *oauth2.Token, video *Video) (*youtu
// for some reason, this only returns 0. // for some reason, this only returns 0.
// instead, we pull the file size from the ffmpeg output directly. // instead, we pull the file size from the ffmpeg output directly.
if total == 0 { total = video.SizeBytes } if total == 0 { total = video.SizeBytes }
fmt.Printf("Uploading... (%.2f%%)\n", float64(current) / float64(total)) fmt.Printf("Uploading... (%.2f%%)\n", float64(current) / float64(total) * 100)
}) })
ytVideo, err := call.Do() ytVideo, err := call.Do()
if err != nil { if err != nil {