From fb271f08cdee877795091065c344dcc902d1dcbf Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Sun, 5 Feb 2017 18:14:00 +0100 Subject: [PATCH] Add pre-emphasis status reporting to whipper's logfiles Fixes #120 --- morituri/result/logger.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/morituri/result/logger.py b/morituri/result/logger.py index 4d06b4e5..98d6bf99 100644 --- a/morituri/result/logger.py +++ b/morituri/result/logger.py @@ -25,9 +25,8 @@ def logRip(self, ripResult, epoch): lines = [] # Ripper version - # Only implemented in whipper (ripResult.logger) - lines.append("Log created by: whipper %s (%s logger)" % ( - morituri.__version__, ripResult.logger)) + lines.append("Log created by: whipper %s (internal logger)" % + morituri.__version__) # Rip date date = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(epoch)).strip() @@ -182,6 +181,14 @@ def trackLog(self, trackResult): peak = trackResult.peak lines.append(" Peak level: %.6f" % peak) + # Pre-emphasis status + # Only implemented in whipper (t.pre_emphasis) + if t.pre_emphasis: + preEmph = "Yes" + else: + preEmph = "No" + lines.append(" Pre-emphasis: %s" % preEmph) + # Extraction speed if trackResult.copyspeed: lines.append(" Extraction speed: %.1f X" % (