12-20-2011, 05:00 AM | #1 |
Groupie
Posts: 170
Karma: 1010944
Join Date: Oct 2010
Location: The African bush
Device: Kindle 3
|
Challenge: can anyone develop a simple booklist generator?
Here's a challenge which may be quite simple for someone with programming skills:
Could anyone come up with a fairly basic way of cleaning-up the booklist generated through a command-prompt procedure directly from either the Kindle's own directory (or a mirror of it on the PC). I am not referring to Calibre's booklist generator, which requires all the books to actually be loaded in Calibre itself, which is painful if you have hundreds. This is one popular way of generating a booklist (of .mobis) from the actual Kindle (or mirror) directory: --------- "To print a list of all books in the Kindle master folder (or on the PC), from Command Prompt, switch to the relevant drive, drill down to the Kindle folder, then type: dir /s *.mobi > holdbooks.txt (press enter key) where the > redirects the output into the file holdbooks.txt, /s means go down the folders if you have subfolders. Then remove unwanted text, numbers etc. with Find and Replace." --------- In principle this works fine, but it produces a very bloated document with a bunch of info you don't need if you only want a catalogue of all the authors and their books, plus unnecessary spaces, file sizes etc. The trick would seem to be to find a way to strip the resulting .txt file down to its essentials which I suggest needs to look simply something like this, e.g. under your own Novels classification you might have: Colm Toibin: Mothers and Sons Colm Toibin: The Empty Family Colum McCann: Let The Great World Spin Cormac McCarthy: Outer Dark Daniel Handler: The Basic Eight Dave Eggers: You Shall Know Our Velocity! David Abbott: The Upright Piano Player David Guterson: Snow Falling on Cedars David Malouf: Ransom etc. To get to this stage, without more than basic abilities to run repeated Find & Replace actions involved me in an enormous amount of manual deletion and cleaning up. Can there be an easier way? If someone can come up with a solution he or she will be doing the ebook community an enormous service. Many of us would love to be able to generate a simple catalogue of our collections at regular intervals! |
12-20-2011, 05:47 AM | #2 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Have you tried Calibre in device view mode? This may be all you need. The ebooks will all show up as not in your Calibre library, but you can still search and delete.
|
12-20-2011, 06:35 AM | #3 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
There's a mobi directory browser in Tompe's "mobi2mobi" toolset. Might be worth looking at.
|
12-20-2011, 07:08 AM | #4 |
Grand Sorcerer
Posts: 27,465
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
A fairly accurate list of the books currently on my Kindle can be found on the Home page(s). It even ignores all those pesky folders and (sometimes) meaningless file names.
|
12-20-2011, 09:21 AM | #5 |
Groupie
Posts: 170
Karma: 1010944
Join Date: Oct 2010
Location: The African bush
Device: Kindle 3
|
Ummm, try that when your collection is upwards of 2,000 books...... Or when you want to send someone a list of your library!
|
12-20-2011, 09:22 AM | #6 |
Groupie
Posts: 170
Karma: 1010944
Join Date: Oct 2010
Location: The African bush
Device: Kindle 3
|
Could you actually print out a booklist like this, which would be one of the objects of the exercise?
|
12-20-2011, 09:24 AM | #7 | |
Grand Sorcerer
Posts: 27,465
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
12-20-2011, 09:38 AM | #8 | |
Groupie
Posts: 170
Karma: 1010944
Join Date: Oct 2010
Location: The African bush
Device: Kindle 3
|
Quote:
I'll check out the mobi directory browser mentioned earlier while seeing if anyone else comes up with something suitable. |
|
12-20-2011, 09:50 AM | #9 |
Groupie
Posts: 170
Karma: 1010944
Join Date: Oct 2010
Location: The African bush
Device: Kindle 3
|
Harry: I checked out the Mobi2Mobi tools but it looks a lot like they are beyond my simple skills. I need a just-heat-and-eat solution.
Wallcraft: Running the latest Calibre, I couldn't find any way of simply pointing it to, say, my master book collection (some 2,000 books) on my PC without having to Add each and every one -- which would take all day. (I have to point out that I only use Calibre for ad hoc conversions, so that it doesn't store any master-list of my books). So unless I'm missing something, unfortunately none of this addresses the basic crux of the issue: a simple solution for generating a simple 'author: title' booklist from either the Kindle or a PC directory, a booklist which could also be printed or shared if required. |
12-20-2011, 10:17 AM | #10 | |
Grand Sorcerer
Posts: 27,465
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
12-20-2011, 10:28 AM | #11 |
Home Guard
Posts: 4,728
Karma: 86721650
Join Date: Jun 2007
Location: Alpha Ralpha Boulevard
Device: Kindle Oasis 3G, iPhone 6
|
What about a directory printer. If you have useful filenames you could just print out the contents of the kindle's document folder.
Karen's Directory Printer http://www.karenware.com/powertools/ptdirprn.asp JR Directory Printer Utility http://www.spadixbd.com/freetools/jdirprint.htm and others. |
12-20-2011, 12:20 PM | #12 |
Evangelist
Posts: 461
Karma: 956567
Join Date: Oct 2010
Location: Toronto, Canada
Device: Kindle Oasis 3
|
I've gotten my process down to 5 minutes. Command prompt is:
dir *.mobi *.prc /s/B/on/w/a:-d > files.txt then I take the files.txt file and import into Excel, remove the first few columns that contain directory names, and you're left with author / book as 2 excel columns. Done. |
12-20-2011, 02:29 PM | #13 |
Addict
Posts: 309
Karma: 1008082
Join Date: Feb 2009
Location: NYC
Device: Kindle PW, K4 Touch, iPad2, Samsung Galaxy S II
|
This is one of the areas where Mac and Linux is so much superior to windows. You just type one line of code and it's done, no 3rd party software needed.
Anyway, in case any Mac users need a similar list, one can just copy & paste the following. There're many ways to do this, this is just one of them: Code:
find . -iname '*.mobi' -exec basename {} \; | sed 's/.mobi$//' > book_list.txt Code:
find . -iname '*.mobi' -exec mobi2mobi {} \; | egrep 'Author|Title' | sed 'N;s/^EXTH.*[0-9][0-9]\ -\ \(.*\)\nEXTH.*[0-9][0-9]\ -\ \(.*\)$/\1 \:\ \2/g' > book_list.txt It's the same for linux, but linux users probably already know this Last edited by shinew; 12-20-2011 at 03:00 PM. |
12-20-2011, 05:00 PM | #14 |
Addict
Posts: 309
Karma: 1008082
Join Date: Feb 2009
Location: NYC
Device: Kindle PW, K4 Touch, iPad2, Samsung Galaxy S II
|
|
12-21-2011, 02:01 AM | #15 |
Groupie
Posts: 170
Karma: 1010944
Join Date: Oct 2010
Location: The African bush
Device: Kindle 3
|
Thank you to those who made helpful suggestions rather than diverting the topic.
I will try the ideas and if one turns out to be particularly user-friendly I will mention that here, hopefully to the benefit of other users wanting to achieve the same result: a simple, printable, shareable booklist. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trio of Picture Books - Simple Animals, Simple Shapes, and You're My Baby! | Manley Peterson | Self-Promotions by Authors and Publishers | 5 | 01-06-2012 08:55 PM |
PRS-950 Where did my booklist go? | Arpadams | Sony Reader Dev Corner | 0 | 08-14-2011 12:00 PM |
booklist refresh | fbdev | Kindle Developer's Corner | 2 | 08-01-2011 12:08 PM |
Printing or saving a simple booklist? | unboggling | Library Management | 3 | 01-05-2011 06:18 PM |
Booklist by author | huebi | Sigil | 2 | 12-24-2010 06:54 AM |