From: Jan Szejko Date: Fri, 16 Dec 2016 13:08:29 +0000 (+0100) Subject: epub default cover X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/25d4f6d349acfd3dc8bebd2469dd84cde3b5927d?ds=inline epub default cover --- diff --git a/librarian/epub.py b/librarian/epub.py index c126e78..f63826f 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -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')) + if cover is None: + cover = WLCover if cover: if cover is True: cover = WLCover