* examples/ARcue.py:

* morituri/common/task.py:
	  First version that seems to get some AccurateRip checksums right.
This commit is contained in:
Thomas Vander Stichele
2009-03-22 15:07:42 +00:00
parent fc0d953138
commit 271bca108f
3 changed files with 70 additions and 16 deletions

View File

@@ -35,7 +35,9 @@ def main(path):
for track in cuefile.tracks:
index = track._indexes[1]
length = cuefile.getTrackLength(track)
file = index[1]
offset = index[0]
# find an actual potential file
crctask = None
@@ -46,12 +48,13 @@ def main(path):
for ext in ['wav', 'flac']:
path = '%s.%s' % (noext, ext)
if os.path.exists(path):
crctask = task.CRCTask(path)
crctask = task.CRCAudioRipTask(path, offset * 588,
length * 588)
if not crctask:
print 'error: path %s not found' % file.path
print 'Analyzing', file.path
print 'Analyzing', file.path, "from CD frame ", offset, length, "CD frames"
runner = task.SyncRunner(crctask)
runner.run()