mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
...
This commit is contained in:
commit
4374f18534
@ -576,7 +576,9 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
self._debug('Protocol error - bogus accepted extensions')
|
self._debug('Protocol error - bogus accepted extensions')
|
||||||
self._close_device_socket()
|
self._close_device_socket()
|
||||||
return False
|
return False
|
||||||
self.FORMATS = exts
|
config = self._configProxy()
|
||||||
|
config['format_map'] = exts
|
||||||
|
self._debug('selected formats', config['format_map']);
|
||||||
if password:
|
if password:
|
||||||
returned_hash = result.get('passwordHash', None)
|
returned_hash = result.get('passwordHash', None)
|
||||||
if result.get('passwordHash', None) is None:
|
if result.get('passwordHash', None) is None:
|
||||||
@ -678,7 +680,6 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
if opcode == 'OK':
|
if opcode == 'OK':
|
||||||
count = result['count']
|
count = result['count']
|
||||||
for i in range(0, count):
|
for i in range(0, count):
|
||||||
self._debug('retrieve metadata book', i)
|
|
||||||
opcode, result = self._call_client('GET_BOOK_METADATA', {'index': i},
|
opcode, result = self._call_client('GET_BOOK_METADATA', {'index': i},
|
||||||
print_debug_info=False)
|
print_debug_info=False)
|
||||||
if opcode == 'OK':
|
if opcode == 'OK':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user