From 0e395e5f0e35a29963451a51f0aeb46564f49bd3 Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Thu, 9 Feb 2017 23:05:00 +0100 Subject: [PATCH] Fix bug introduced in fb271f08c --- morituri/command/cd.py | 2 ++ morituri/result/logger.py | 4 ++-- morituri/result/result.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/morituri/command/cd.py b/morituri/command/cd.py index 8ddaafa..dbfcced 100644 --- a/morituri/command/cd.py +++ b/morituri/command/cd.py @@ -392,6 +392,8 @@ Log files will log the path to tracks relative to this directory. if number > 0: trackResult.pregap = self.itable.tracks[number - 1].getPregap() + trackResult.pre_emphasis = self.itable.tracks[number - 1].pre_emphasis + # FIXME: optionally allow overriding reripping if os.path.exists(path): if path != trackResult.filename: diff --git a/morituri/result/logger.py b/morituri/result/logger.py index 98d6bf9..ce89a0a 100644 --- a/morituri/result/logger.py +++ b/morituri/result/logger.py @@ -182,8 +182,8 @@ class MorituriLogger(result.Logger): lines.append(" Peak level: %.6f" % peak) # Pre-emphasis status - # Only implemented in whipper (t.pre_emphasis) - if t.pre_emphasis: + # Only implemented in whipper (trackResult.pre_emphasis) + if trackResult.pre_emphasis: preEmph = "Yes" else: preEmph = "No" diff --git a/morituri/result/result.py b/morituri/result/result.py index a861341..26f72ad 100644 --- a/morituri/result/result.py +++ b/morituri/result/result.py @@ -57,6 +57,7 @@ class TrackResult: number = None filename = None pregap = 0 # in frames + pre_emphasis = None peak = 0.0 quality = 0.0