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:
@@ -514,7 +514,7 @@ class Table(object, log.Loggable):
|
|||||||
discId1[-1], discId1[-2], discId1[-3],
|
discId1[-1], discId1[-2], discId1[-3],
|
||||||
self.getAudioTracks(), discId1, discId2, self.getCDDBDiscId())
|
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,
|
@param cuePath: path to the cue file to be written. If empty,
|
||||||
will treat paths as if in current directory.
|
will treat paths as if in current directory.
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class MorituriLogger(result.Logger):
|
|||||||
def logRip(self, ripResult, epoch):
|
def logRip(self, ripResult, epoch):
|
||||||
lines = []
|
lines = []
|
||||||
lines.append("Ripper: morituri %s" % configure.version)
|
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("Ripped at: %s" % date)
|
||||||
lines.append("Drive: %s%s (revision %s)" %
|
lines.append("Drive: %s%s (revision %s)" %
|
||||||
(ripResult.vendor, ripResult.model, ripResult.release))
|
(ripResult.vendor, ripResult.model, ripResult.release))
|
||||||
@@ -138,7 +138,7 @@ class MorituriLogger(result.Logger):
|
|||||||
|
|
||||||
hasher = hashlib.sha256()
|
hasher = hashlib.sha256()
|
||||||
hasher.update("\n".join(lines).encode("utf-8"))
|
hasher.update("\n".join(lines).encode("utf-8"))
|
||||||
lines.append("==== Log checksum %s ====" % hasher.hexdigest())
|
lines.append("Log checksum: %s" % hasher.hexdigest())
|
||||||
lines.append("")
|
lines.append("")
|
||||||
return lines
|
return lines
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user