fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Data for #3396: picture style, full creation date.
[librarian.git]
/
librarian
/
mobi.py
diff --git
a/librarian/mobi.py
b/librarian/mobi.py
index
b30c1fe
..
a0e463a
100644
(file)
--- a/
librarian/mobi.py
+++ b/
librarian/mobi.py
@@
-10,8
+10,6
@@
import subprocess
from tempfile import NamedTemporaryFile
from librarian import OutputFile
from tempfile import NamedTemporaryFile
from librarian import OutputFile
-from librarian.cover import DefaultEbookCover
-from librarian import get_resource
def transform(wldoc, verbose=False, sample=None, cover=None,
def transform(wldoc, verbose=False, sample=None, cover=None,
@@
-26,14
+24,9
@@
def transform(wldoc, verbose=False, sample=None, cover=None,
document = deepcopy(wldoc)
del wldoc
document = deepcopy(wldoc)
del wldoc
- book_info = document.book_info
-
- if not flags:
- flags = []
- flags = list(flags)
epub = document.as_epub(verbose=verbose, sample=sample,
epub = document.as_epub(verbose=verbose, sample=sample,
- html_toc=True, cover=True, flags=flags)
+ html_toc=True, cover=
cover or
True, flags=flags)
if verbose:
kwargs = {}
else:
if verbose:
kwargs = {}
else: