Use title and author name when creating filename for export from database.

This commit is contained in:
Kovid Goyal 2007-09-13 19:22:52 +00:00
parent 77b1658b5e
commit b3d74f9a89

View File

@ -1025,7 +1025,7 @@ class LibraryDatabase(object):
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__':