mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Search in both the parent and the originating_device.
This commit is contained in:
parent
2c17492ad1
commit
c4ada0f159
@ -700,7 +700,7 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
d.product == objif.GetProperty('usb.product') and \
|
||||
d.serial == objif.GetProperty('usb.serial'):
|
||||
midpath = manager.FindDeviceStringMatch('info.parent', path)
|
||||
dpaths = manager.FindDeviceStringMatch('storage.originating_device', midpath[0])
|
||||
dpaths = manager.FindDeviceStringMatch('storage.originating_device', path) + manager.FindDeviceStringMatch('storage.originating_device', midpath[0])
|
||||
for dpath in dpaths:
|
||||
# devif = dbus.Interface(bus.get_object('org.freedesktop.Hal', dpath), 'org.freedesktop.Hal.Device')
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user