Merge branch 'master' of https://github.com/cbhaley/calibre into master

This commit is contained in:
Kovid Goyal 2020-10-10 17:45:05 +05:30
commit 83d9f0946b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -817,7 +817,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
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