From 4a53ecba2c25dc580df7b05d9ec0dc55c7b4db15 Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Thu, 29 Nov 2018 08:00:00 +0000 Subject: [PATCH] Avoid zero padding in logger track numbers Fixes #340. --- whipper/result/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whipper/result/logger.py b/whipper/result/logger.py index 99503630..066d3118 100644 --- a/whipper/result/logger.py +++ b/whipper/result/logger.py @@ -89,7 +89,7 @@ def logRip(self, ripResult, epoch): htoastart = htoa.absolute htoaend = table.getTrackEnd(0) htoalength = table.tracks[0].getIndex(1).absolute - htoastart - lines.append(" 00:") + lines.append(" 0:") lines.append(" Start: %s" % common.framesToMSF(htoastart)) lines.append(" Length: %s" % common.framesToMSF(htoalength)) lines.append(" Start sector: %d" % htoastart) @@ -103,7 +103,7 @@ def logRip(self, ripResult, epoch): start = t.getIndex(1).absolute length = table.getTrackLength(t.number) end = table.getTrackEnd(t.number) - lines.append(" %02d:" % t.number) + lines.append(" %d:" % t.number) lines.append(" Start: %s" % common.framesToMSF(start)) lines.append(" Length: %s" % common.framesToMSF(length)) lines.append(" Start sector: %d" % start)