mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
d7c94246d7
commit
20bf4092c7
@ -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')
|
||||
|
@ -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
|
||||
|
||||
|
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…
x
Reference in New Issue
Block a user