mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-02 18:47:01 -05:00 
			
		
		
		
	Use title and author name when creating filename for export from database.
This commit is contained in:
		
							parent
							
								
									77b1658b5e
								
							
						
					
					
						commit
						b3d74f9a89
					
				@ -1025,7 +1025,7 @@ class LibraryDatabase(object):
 | 
				
			|||||||
                    os.mkdir(tpath)
 | 
					                    os.mkdir(tpath)
 | 
				
			||||||
                for fmt in self.formats(idx).split(','):
 | 
					                for fmt in self.formats(idx).split(','):
 | 
				
			||||||
                    data = self.format(idx, fmt)
 | 
					                    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)
 | 
					                    f.write(data)
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user