mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-06 05:04:06 +01:00
Make smartdevice dynamic format selection work.
This commit is contained in:
parent
2361d7be01
commit
ef3ed2d2f8
1 changed files with 3 additions and 2 deletions
|
|
@ -576,7 +576,9 @@ def open(self, connected_device, library_uuid):
|
|||
self._debug('Protocol error - bogus accepted extensions')
|
||||
self._close_device_socket()
|
||||
return False
|
||||
self.FORMATS = exts
|
||||
config = self._configProxy()
|
||||
config['format_map'] = exts
|
||||
self._debug('selected formats', config['format_map']);
|
||||
if password:
|
||||
returned_hash = result.get('passwordHash', None)
|
||||
if result.get('passwordHash', None) is None:
|
||||
|
|
@ -678,7 +680,6 @@ def books(self, oncard=None, end_session=True):
|
|||
if opcode == 'OK':
|
||||
count = result['count']
|
||||
for i in range(0, count):
|
||||
self._debug('retrieve metadata book', i)
|
||||
opcode, result = self._call_client('GET_BOOK_METADATA', {'index': i},
|
||||
print_debug_info=False)
|
||||
if opcode == 'OK':
|
||||
|
|
|
|||
Loading…
Reference in a new issue