mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 23:56:17 +01:00
...
This commit is contained in:
parent
d7c94246d7
commit
20bf4092c7
3 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ def check_for_masthead(self):
|
|||
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')
|
||||
|
|
|
|||
|
|
@ -1374,7 +1374,7 @@ def create_book_entry(self, mi, cover=None, add_duplicates=True):
|
|||
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
|
||||
|
||||
|
|
|
|||
BIN
src/calibre/library/static/calibre_banner.png
Normal file
BIN
src/calibre/library/static/calibre_banner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Loading…
Reference in a new issue