mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5ac5928486
commit
8dde6d8433
@ -244,8 +244,8 @@ if __name__ == '__main__':
|
|||||||
dev.startup()
|
dev.startup()
|
||||||
from calibre.devices.scanner import linux_scanner
|
from calibre.devices.scanner import linux_scanner
|
||||||
devs = linux_scanner()
|
devs = linux_scanner()
|
||||||
mtp_devs = dev.detect(devs)
|
cd = dev.detect_managed_devices(devs)
|
||||||
dev.open(list(mtp_devs)[0], 'xxx')
|
dev.open(cd, 'xxx')
|
||||||
d = dev.dev
|
d = dev.dev
|
||||||
print ("Opened device:", dev.get_gui_name())
|
print ("Opened device:", dev.get_gui_name())
|
||||||
print ("Storage info:")
|
print ("Storage info:")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user