Fix duplicate file read

This commit is contained in:
Kovid Goyal 2019-09-19 08:10:43 +05:30
parent a31474804f
commit d459097e3f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -52,7 +52,6 @@ def set_book_path(path, pathtoebook):
set_book_path.path = os.path.abspath(path)
set_book_path.metadata = get_data('calibre-book-metadata.json')[0]
set_book_path.manifest, set_book_path.manifest_mime = get_data('calibre-book-manifest.json')
set_book_path.metadata = get_data('calibre-book-metadata.json')[0]
set_book_path.parsed_metadata = json_loads(set_book_path.metadata)
set_book_path.parsed_manifest = json_loads(set_book_path.manifest)