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:
committed by
JoeLametta
parent
8721ba1caf
commit
d7f8557426
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user