mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 12:13:41 +02:00
...
This commit is contained in:
parent
6486e2bee0
commit
6678af3a25
3 changed files with 5 additions and 3 deletions
|
|
@ -98,7 +98,7 @@ def debug_device_driver():
|
|||
errors = {}
|
||||
success = False
|
||||
for dev in connected_devices:
|
||||
print 'Device possibly connected:', dev
|
||||
print 'Device possibly connected:', dev.__class__.name
|
||||
print 'Trying to open device...',
|
||||
try:
|
||||
dev.open()
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
class NOOK(USBMS):
|
||||
|
||||
name = 'Nook Device Interface'
|
||||
gui_name = _('The Nook')
|
||||
description = _('Communicate with the Nook eBook reader.')
|
||||
author = 'John Schember'
|
||||
supported_platforms = ['windows', 'linux', 'osx']
|
||||
|
|
|
|||
|
|
@ -784,8 +784,9 @@ def sync_to_device(self, on_card, delete_from_library,
|
|||
if _auto_ids != []:
|
||||
for id in _auto_ids:
|
||||
if specific_format == None:
|
||||
formats = [f.lower() for f in self.library_view.model().db.formats(id, index_is_id=True).split(',')]
|
||||
formats = formats if formats != None else []
|
||||
formats = self.library_view.model().db.formats(id, index_is_id=True)
|
||||
formats = formats.split(',') if formats is not None else []
|
||||
formats = [f.lower().strip() for f in formats]
|
||||
if list(set(formats).intersection(available_input_formats())) != [] and list(set(self.device_manager.device_class.settings().format_map).intersection(available_output_formats())) != []:
|
||||
auto.append(id)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue