Skip to content

Commit

Permalink
Tag release v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeLametta committed Nov 28, 2018
1 parent 1013518 commit bd6c76b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions eaclogger/logger/eac.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def logRip(self, ripResult, epoch):

# Ripper version
# ATM differs from EAC's typical log line
lines.append("whipper version %s (eac logger 0.3.2)" % (
lines.append("whipper version %s (eac logger 0.3.3)" % (
whipper.__version__))
lines.append("")

Expand Down Expand Up @@ -165,6 +165,7 @@ def logRip(self, ripResult, epoch):
lines.append("")

# AccurateRip summary at the end of the logfile
lines.append("")
if self._inARDatabase == 0:
lines.append("None of the tracks are present "
"in the AccurateRip database")
Expand Down Expand Up @@ -205,6 +206,7 @@ def logRip(self, ripResult, epoch):

# Log checksum (uppercase hex encoded SHA256 hash of all lines)
# It isn't compatible with EAC's one: checklog fail
lines.append("")
hasher = hashlib.sha256()
hasher.update("\n".join(lines).encode("utf-8"))
lines.append("==== Log checksum %s ====" % hasher.hexdigest().upper())
Expand All @@ -218,10 +220,7 @@ def trackLog(self, trackResult):
lines = []

# Track number (formatting like EAC's one)
if trackResult.number < 10:
lines.append("Track %2d" % trackResult.number)
else:
lines.append("Track %2d" % trackResult.number)
lines.append("Track %2d" % trackResult.number)
lines.append("")

# Filename (including path) of ripped track
Expand All @@ -243,7 +242,7 @@ def trackLog(self, trackResult):
# and also calculating it against a max of 32767
# MBV - Feed me with your kiss: replaygain 0.809875,
# EAC's peak level 80.9 % instead of 90.0 %
peak = trackResult.peak * 32768 / 32767
peak = trackResult.peak / 32767.0
lines.append(" Peak level %.1f %%" % (
int(peak * 1000) / 10.0))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="whipper-plugin-eaclogger",
version="0.3.2",
version="0.3.3",
description="Logger plugin for whipper which provides EAC style reports",
author="JoeLametta, superveloman",
maintainer="JoeLametta",
Expand Down

0 comments on commit bd6c76b

Please sign in to comment.