mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Linux: Fix SONY PRS-650 not being detected
This commit is contained in:
parent
de181c8bb7
commit
7e5555845b
@ -509,9 +509,9 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
devnodes.append(node)
|
||||
|
||||
devnodes += list(repeat(None, 3))
|
||||
ans = ['/dev/'+x if ok.get(x, False) else None for x in devnodes[:3]]
|
||||
ans = ['/dev/'+x if ok.get(x, False) else None for x in devnodes]
|
||||
ans.sort(key=lambda x: x[5:] if x else 'zzzzz')
|
||||
return self.linux_swap_drives(ans)
|
||||
return self.linux_swap_drives(ans[:3])
|
||||
|
||||
def linux_swap_drives(self, drives):
|
||||
return drives
|
||||
|
Loading…
x
Reference in New Issue
Block a user