mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix saving to disk (in a single directory) of books with no formats
This commit is contained in:
parent
4dff7ecf95
commit
73e7c29de0
@ -1413,7 +1413,10 @@ ALTER TABLE books ADD COLUMN isbn TEXT DEFAULT "" COLLATE NOCASE;
|
|||||||
mi.render(f)
|
mi.render(f)
|
||||||
f.close()
|
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)
|
data = self.format(idx, fmt, index_is_id=index_is_id)
|
||||||
fname = name +'.'+fmt.lower()
|
fname = name +'.'+fmt.lower()
|
||||||
fname = sanitize_file_name(fname)
|
fname = sanitize_file_name(fname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user