mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Filter device list for repeating entries (occurs under Windows occasionally).
This commit is contained in:
parent
9112b32b5e
commit
3188e6ab28
@ -1293,7 +1293,9 @@ class libiMobileDevice():
|
||||
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…
x
Reference in New Issue
Block a user