Convert 'Morituri' to 'morituri' (cue sheet)

The ripper name in the log file is written all lowercase: do the same
in the cue sheet too.
Short cosmetic fixes for 'logger.py'
This commit is contained in:
JoeLametta
2015-11-30 11:43:19 +01:00
parent 1d046c60f7
commit ed4c9f4ece
2 changed files with 3 additions and 3 deletions

View File

@@ -514,7 +514,7 @@ class Table(object, log.Loggable):
discId1[-1], discId1[-2], discId1[-3],
self.getAudioTracks(), discId1, discId2, self.getCDDBDiscId())
def cue(self, cuePath='', program='Morituri'):
def cue(self, cuePath='', program='morituri'):
"""
@param cuePath: path to the cue file to be written. If empty,
will treat paths as if in current directory.

View File

@@ -39,7 +39,7 @@ class MorituriLogger(result.Logger):
def logRip(self, ripResult, epoch):
lines = []
lines.append("Ripper: morituri %s" % configure.version)
date = time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime(epoch)).strip()
date = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(epoch)).strip()
lines.append("Ripped at: %s" % date)
lines.append("Drive: %s%s (revision %s)" %
(ripResult.vendor, ripResult.model, ripResult.release))
@@ -138,7 +138,7 @@ class MorituriLogger(result.Logger):
hasher = hashlib.sha256()
hasher.update("\n".join(lines).encode("utf-8"))
lines.append("==== Log checksum %s ====" % hasher.hexdigest())
lines.append("Log checksum: %s" % hasher.hexdigest())
lines.append("")
return lines