* morituri/common/program.py:

* morituri/rip/cd.py:
	  Reset rip duration when we continue a rip but have to rerip
	  a track.
This commit is contained in:
Thomas Vander Stichele
2012-11-28 08:19:43 +00:00
parent e67ad23894
commit f0cb567a0d
3 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
2012-11-28 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/program.py:
* morituri/rip/cd.py:
Reset rip duration when we continue a rip but have to rerip
a track.
2012-11-27 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/program.py:

View File

@@ -470,6 +470,11 @@ class Program(log.Loggable):
runner.run(t)
self.debug('ripped track')
self.debug('test speed %.3f/%.3f seconds' % (
t.testspeed, t.testduration))
self.debug('copy speed %.3f/%.3f seconds' % (
t.copyspeed, t.copyduration))
trackResult.testcrc = t.testchecksum
trackResult.copycrc = t.copychecksum
trackResult.peak = t.peak

View File

@@ -260,7 +260,11 @@ See http://sourceforge.net/tracker/?func=detail&aid=604751&group_id=2171&atid=1
os.unlink(path)
if not os.path.exists(path):
self.debug('path %r does not exist, ripping...' % path)
tries = 0
# we reset durations for test and copy here
trackResult.testduration = 0.0
trackResult.copyduration = 0.0
self.stdout.write('Ripping track %d of %d: %s\n' % (
number, len(itable.tracks),
os.path.basename(path).encode('utf-8')))