mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 05:25:05 +01:00
Fix wireless device driver not using cached metadata
This commit is contained in:
parent
d84c2c2d4f
commit
50cc82cbe9
1 changed files with 1 additions and 1 deletions
|
|
@ -817,7 +817,7 @@ def _read_metadata_cache(self):
|
|||
break
|
||||
raw = fd.read(int(rec_len))
|
||||
book = json.loads(raw.decode('utf-8'), object_hook=from_json)
|
||||
key = book.keys()[0]
|
||||
key = list(book.keys())[0]
|
||||
metadata = self.json_codec.raw_to_book(book[key]['book'],
|
||||
SDBook, self.PREFIX)
|
||||
book[key]['book'] = metadata
|
||||
|
|
|
|||
Loading…
Reference in a new issue