epub default cover
authorJan Szejko <janek37@gmail.com>
Fri, 16 Dec 2016 13:08:29 +0000 (14:08 +0100)
committerJan Szejko <janek37@gmail.com>
Fri, 16 Dec 2016 13:08:29 +0000 (14:08 +0100)
librarian/epub.py

index c126e78..f63826f 100644 (file)
@@ -451,6 +451,8 @@ def transform(wldoc, verbose=False, style=None, html_toc=False,
         style = get_resource('epub/style.css')
     zip.write(style, os.path.join('OPS', 'style.css'))
 
         style = get_resource('epub/style.css')
     zip.write(style, os.path.join('OPS', 'style.css'))
 
+    if cover is None:
+        cover = WLCover
     if cover:
         if cover is True:
             cover = WLCover
     if cover:
         if cover is True:
             cover = WLCover