From 96eaef5707b2e23234f2b1c460e93aa7273e6ad0 Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Sun, 14 Jul 2019 13:09:36 -0600 Subject: [PATCH] Convert finalEnd to milliseconds to match chapters (#3) --- mp3chap.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mp3chap.go b/mp3chap.go index 8bee5b5..436a5ed 100644 --- a/mp3chap.go +++ b/mp3chap.go @@ -87,6 +87,8 @@ func main() { finalEnd, err = strconv.ParseUint(os.Args[x], 10, 32) if err != nil { log.Fatal("failed parsing final seconds %#v: %v", os.Args[x], err) + } else { + finalEnd = uint64(finalEnd * 1000) } }