mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-05 18:15:04 +01:00
Use title and author name when creating filename for export from database.
This commit is contained in:
parent
77b1658b5e
commit
b3d74f9a89
1 changed files with 1 additions and 1 deletions
|
|
@ -1025,7 +1025,7 @@ def export_to_dir(self, dir, indices):
|
|||
os.mkdir(tpath)
|
||||
for fmt in self.formats(idx).split(','):
|
||||
data = self.format(idx, fmt)
|
||||
f = open(os.path.join(tpath, __appname__+'_'+id+'.'+fmt.lower()), 'wb')
|
||||
f = open(os.path.join(tpath, title + ' - ' + au +'_'+id+'.'+fmt.lower()), 'wb')
|
||||
f.write(data)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue