06-15-2012, 07:10 PM | #1 |
Member
Posts: 16
Karma: 10
Join Date: Nov 2011
Device: Kindle
|
Book Title from filename
Is there a tool that will extract the book title from an .azw file?
What I am looking for is a command-line tool that will allow me to specify the name of the file and have it output the title of the book. The reason for this is that when a book is "sent" to Kindle for PC, the filename is something similar to "B018B50737_EBOK.azw", and I want to rename the file to the actual filename. Thanks, Eric |
06-16-2012, 11:11 AM | #2 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
You might just look at the first line in the file with more for example and see if this helps. Generally there is a title there. Just ignore the binary parts.
Dale |
Advert | |
|
06-16-2012, 05:41 PM | #3 |
Member
Posts: 21
Karma: 244219
Join Date: Jul 2011
Device: K3
|
If you are comfortable running python code, I have code obtained here which I have modified for my own purposes - I've reduced it down to only display book titles. Run attached exthtitle.py from a folder of your choice, and it dumps the booktitles of all .azw and .mobi files found in that folder and all subfolders. You are free to hack/amend the code to your own requirements.
|
06-17-2012, 10:43 PM | #4 |
Member
Posts: 16
Karma: 10
Join Date: Nov 2011
Device: Kindle
|
Thanks guys.
DaleDe: I'll take a look at the first line of the file and see what I can see. dilo_sec: Thanks for the code... I have not played with Python, but will see if I can't work out what it is doing. EricB |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use Filename as Title in ANY Reader | tonyc46 | Android Devices | 2 | 02-21-2012 10:23 PM |
using filename for title | pj123 | Calibre | 1 | 05-22-2011 06:18 PM |
importing PDF with author, title in filename | autchirion | Library Management | 3 | 02-22-2011 11:46 AM |
Metadata in Title/filename | mezme | Calibre | 0 | 08-18-2010 03:08 AM |
Content PDF: Homescreen shows Filename instead of Title (Metadata) | bear4hunter | Amazon Kindle | 1 | 08-02-2010 12:35 AM |