* morituri/common/task.py:

Add debug.
	* morituri/rip/drive.py:
	  Show all drives, not just the ones that happen to have an Audio CD
	  inserted.
This commit is contained in:
Thomas Vander Stichele
2009-05-26 21:30:49 +00:00
parent b6b5ea2c1b
commit 05dfeaa3a2
3 changed files with 14 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
2009-05-26 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/task.py:
Add debug.
* morituri/rip/drive.py:
Show all drives, not just the ones that happen to have an Audio CD
inserted.
2009-05-25 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/rip/cd.py:

View File

@@ -362,6 +362,7 @@ class SyncRunner(TaskRunner):
self._report()
def stopped(self, task):
self.debug('stopped task %r', task)
self.progressed(task, 1.0)
self._loop.quit()

View File

@@ -29,7 +29,11 @@ class List(logcommand.LogCommand):
summary = "list drives"
def do(self, args):
paths = cdio.get_devices_with_cap(pycdio.FS_AUDIO, False)
print 'getting paths'
# using FS_AUDIO here only makes it list the drive when an audio cd
# is inserted
paths = cdio.get_devices_with_cap(pycdio.FS_MATCH_ALL, False)
for path in paths:
device = cdio.Device(path)
ok, vendor, model, release = device.get_hwinfo()