This commit is contained in:
Kovid Goyal 2009-07-15 15:20:00 -06:00
parent d7c94246d7
commit 20bf4092c7
3 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class MOBIOutput(OutputFormatPlugin):
except ImportError:
import Image as PILImage
raw = StringIO(server_resources['calibre.png'])
raw = StringIO(server_resources['calibre_banner.png'])
im = PILImage.open(raw)
of = StringIO()
im.save(of, 'GIF')

View File

@ -1374,7 +1374,7 @@ class LibraryDatabase2(LibraryDatabase):
self.set_path(id, True)
self.conn.commit()
self.set_metadata(id, mi)
if cover:
if cover is not None:
self.set_cover(id, cover)
return id

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB