mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix for bug in windows detection of BeBook
This commit is contained in:
parent
aeae9e613a
commit
04d8e251c5
@ -61,7 +61,8 @@ class DeviceScanner(object):
|
||||
vendor_ids = device.VENDOR_ID if hasattr(device.VENDOR_ID, '__len__') else [device.VENDOR_ID]
|
||||
product_ids = device.PRODUCT_ID if hasattr(device.PRODUCT_ID, '__len__') else [device.PRODUCT_ID]
|
||||
if iswindows:
|
||||
for vendor_id, product_id in zip(vendor_ids, product_ids):
|
||||
for vendor_id in vendor_ids:
|
||||
for product_id in product_ids:
|
||||
vid, pid = 'vid_%4.4x'%vendor_id, 'pid_%4.4x'%product_id
|
||||
vidd, pidd = 'vid_%i'%vendor_id, 'pid_%i'%product_id
|
||||
for device_id in self.devices:
|
||||
|
Loading…
x
Reference in New Issue
Block a user