mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix loading of metadata cache from device broken in calibre 5
This commit is contained in:
parent
ff87e15bbb
commit
966faf7dce
@ -176,7 +176,7 @@ class JsonCodec(object):
|
|||||||
def decode_from_file(self, file_, booklist, book_class, prefix):
|
def decode_from_file(self, file_, booklist, book_class, prefix):
|
||||||
js = []
|
js = []
|
||||||
try:
|
try:
|
||||||
js = json.load(file_, encoding='utf-8')
|
js = json.load(file_)
|
||||||
for item in js:
|
for item in js:
|
||||||
entry = self.raw_to_book(item, book_class, prefix)
|
entry = self.raw_to_book(item, book_class, prefix)
|
||||||
if entry is not None:
|
if entry is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user