* morituri/rip/main.py:

* morituri/rip/image.py (added):
	  Add command to verify an image.
	* morituri/common/program.py:
	* morituri/rip/cd.py:
	  Fix AccurateRip checksum output.
This commit is contained in:
Thomas Vander Stichele
2009-06-16 21:09:27 +00:00
parent 0e07a721d1
commit efdc830893
5 changed files with 73 additions and 5 deletions

View File

@@ -409,12 +409,19 @@ class Program(log.Loggable):
trackResult.accuripDatabaseConfidence = confidence
if responses:
maxConfidence = max(r.confidences[i] for r in responses)
maxConfidence = 0
maxResponse = None
for r in responses:
if r.confidences[i] > maxConfidence:
maxConfidence = r.confidences[i]
maxResponse = r
self.debug('found max confidence %d' % maxConfidence)
trackResult.accuripDatabaseMaxConfidence = maxConfidence
if not response:
self.warning('none of the responses matched.')
trackResult.accuripDatabaseCRC = int(
maxResponse.checksums[i], 16)
def writeCue(self, discName):
self.debug('write .cue file')