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,6 +1293,8 @@ class libiMobileDevice():
|
|||||||
else:
|
else:
|
||||||
index = 0
|
index = 0
|
||||||
while devices[index]:
|
while devices[index]:
|
||||||
|
# Filter out redundant entries
|
||||||
|
if devices[index].contents.value not in device_list:
|
||||||
device_list.append(devices[index].contents.value)
|
device_list.append(devices[index].contents.value)
|
||||||
index += 1
|
index += 1
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user