replace cdrdao.py with much simpler version (#52)

* replace cdrdao.py with much simpler version
* more pythonic syntax for cdrdao.read_toc(fast_toc=) switching
* fix silly typo
This commit is contained in:
Samantha Baldwin
2016-10-22 04:32:18 -04:00
committed by JoeLametta
parent 8721ba1caf
commit d7f8557426
5 changed files with 60 additions and 566 deletions

View File

@@ -100,14 +100,7 @@ CD in the AccurateRip database."""
prog.unmountDevice(device)
# first get the Table Of Contents of the CD
t = cdrdao.ReadTOCTask(device=device)
try:
runner.run(t)
except cdrdao.DeviceOpenException, e:
self.error(e.msg)
return 3
t = cdrdao.ReadTOCTask(device)
table = t.table
self.debug("CDDB disc id: %r", table.getCDDBDiscId())