This commit is contained in:
Kovid Goyal 2010-09-30 11:41:27 -06:00
parent 571df3dc7e
commit 99cfbc7445

View File

@ -152,7 +152,8 @@ class DBAdder(Thread): # {{{
mi.application_id = None
if self.db is not None:
if cover:
cover = open(cover, 'rb').read()
with open(cover, 'rb') as f:
cover = f.read()
orig_formats = formats
formats = [f for f in formats if not f.lower().endswith('.opf')]
if prefs['add_formats_to_existing']: