mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-01 01:15:39 +01:00
Fix saving to disk (in a single directory) of books with no formats
This commit is contained in:
parent
4dff7ecf95
commit
73e7c29de0
1 changed files with 4 additions and 1 deletions
|
|
@ -1413,7 +1413,10 @@ def export_to_dir(self, dir, indices, byauthor=False, single_dir=False,
|
|||
mi.render(f)
|
||||
f.close()
|
||||
|
||||
for fmt in self.formats(idx, index_is_id=index_is_id).split(','):
|
||||
fmts = self.formats(idx, index_is_id=index_is_id)
|
||||
if not fmts:
|
||||
fmts = ''
|
||||
for fmt in fmts.split(','):
|
||||
data = self.format(idx, fmt, index_is_id=index_is_id)
|
||||
fname = name +'.'+fmt.lower()
|
||||
fname = sanitize_file_name(fname)
|
||||
|
|
|
|||
Loading…
Reference in a new issue