mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix wireless device driver not using cached metadata
This commit is contained in:
parent
d84c2c2d4f
commit
50cc82cbe9
@ -817,7 +817,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
break
|
break
|
||||||
raw = fd.read(int(rec_len))
|
raw = fd.read(int(rec_len))
|
||||||
book = json.loads(raw.decode('utf-8'), object_hook=from_json)
|
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'],
|
metadata = self.json_codec.raw_to_book(book[key]['book'],
|
||||||
SDBook, self.PREFIX)
|
SDBook, self.PREFIX)
|
||||||
book[key]['book'] = metadata
|
book[key]['book'] = metadata
|
||||||
|
Loading…
x
Reference in New Issue
Block a user