fix: ffprobe length in unit (k)
Some checks failed
Release / Lint and test (push) Failing after 17m35s
Release / Run Release Please (push) Has been skipped
Release / Build, tag, and publish Docker image (push) Has been skipped
Release / Notify IRC (push) Has been skipped

This commit is contained in:
2024-07-01 16:08:16 +08:00
parent 02be9219b1
commit 15a13a149b

View File

@@ -86,7 +86,7 @@ func (i *info) ReplayGainAlbumPeak() float32 { return 0 }
func (i *info) Length() int {
ret, _ := strconv.ParseFloat(i.mediaInfo.Format.Duration, 64)
return int(ret)
return int(ret / 1024)
}
func (i *info) Bitrate() int {