* 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:
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user