diff --git a/src/calibre/ebooks/mobi/output.py b/src/calibre/ebooks/mobi/output.py index 4de346c0af..5f1aa37e19 100644 --- a/src/calibre/ebooks/mobi/output.py +++ b/src/calibre/ebooks/mobi/output.py @@ -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') diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index 3af4002eae..3e218e84cc 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -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 diff --git a/src/calibre/library/static/calibre_banner.png b/src/calibre/library/static/calibre_banner.png new file mode 100644 index 0000000000..1406884870 Binary files /dev/null and b/src/calibre/library/static/calibre_banner.png differ