Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 06-15-2012, 07:10 PM   #1
EricBr
Member
EricBr began at the beginning.
 
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
EricBr is offline   Reply With Quote
Old 06-16-2012, 11:11 AM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,540
Karma: 4597554
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
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
DaleDe is offline   Reply With Quote
 
Enthusiast
Old 06-16-2012, 05:41 PM   #3
dilo_sec
Member
dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.dilo_sec ought to be getting tired of karma fortunes by now.
 
Posts: 20
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.
Attached Files
File Type: zip exthtitle.zip (1.5 KB, 50 views)
dilo_sec is offline   Reply With Quote
Old 06-17-2012, 10:43 PM   #4
EricBr
Member
EricBr began at the beginning.
 
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
EricBr is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 05:50 AM.


MobileRead.com is a privately owned, operated and funded community.