Skip to content

Commit

Permalink
Avoid zero padding in logger track numbers
Browse files Browse the repository at this point in the history
Fixes #340.
  • Loading branch information
JoeLametta committed Nov 29, 2018
1 parent 4a91898 commit 4a53ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whipper/result/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 4a53ecb

Please sign in to comment.