mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Filter device list for repeating entries (occurs under Windows occasionally).
This commit is contained in:
parent
9112b32b5e
commit
3188e6ab28
1 changed files with 3 additions and 1 deletions
|
|
@ -1293,7 +1293,9 @@ def _idevice_get_device_list(self):
|
|||
else:
|
||||
index = 0
|
||||
while devices[index]:
|
||||
device_list.append(devices[index].contents.value)
|
||||
# Filter out redundant entries
|
||||
if devices[index].contents.value not in device_list:
|
||||
device_list.append(devices[index].contents.value)
|
||||
index += 1
|
||||
if self.verbose:
|
||||
self.log(" %s" % repr(device_list))
|
||||
|
|
|
|||
Loading…
Reference in a new issue