| 
			
			 | 
		#1 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 31 
				Karma: 10 
				Join Date: May 2010 
				
				
				
				Device: iPhone Marvin, Marvin 3 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Adding books in ".txt" format and getting author/title
			 
			
			
			I'm moving a large collection of books into a Calibre-curated library, and am having a devil of a time getting the author and title correct for such books. Since I got them from fictionwise, they have file names like "CarlTCStone.txt", but when I do an "Add books", I get the file name displayed as the title, and the Author as "Unknown." Since I'm doing this one author at a time, I can readily bulk-change the author to the correct name, but the Title shows up as "CarlTCStone." 
		
	
		
		
		
		
		
		
		
		
		
		
	
	All of these books start with the following four lines: ====================== The Charm Stone by Lillian Stewart Carl ====================== is there a plugin or some other means of getting the title/author correct on loading the book?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Since txt has no defined format for metadata, what you would need to do is write a script that reads the metadata and renames the file inserting the metadata into the filename. Then import the files into calibre.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 31 
				Karma: 10 
				Join Date: May 2010 
				
				
				
				Device: iPhone Marvin, Marvin 3 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Any suggestions for how to write such a script?
			 
			
			
			Thank you.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Use "short" instead of "full" title for title sort & renaming? | wolpi | Library Management | 2 | 08-04-2016 06:25 PM | 
| Aura Books not listed by title but just "<title> - <number> - <series>" | qee4q | Kobo Reader | 12 | 05-10-2015 05:37 PM | 
| Title format in "save book to disk"? | Phssthpok | Library Management | 5 | 11-26-2014 06:18 AM | 
| A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 05:36 PM | 
| Add date to "Title" for WSJ export to Kindle format | johnnymacg | Recipes | 0 | 05-07-2012 01:27 PM |