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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 11-28-2010, 09:15 PM   #1
thermopyle
Enthusiast
thermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-books
 
Posts: 43
Karma: 874
Join Date: Nov 2010
Device: Kindle
AKC! - Automatic Kindle Collection Generator

Hey, first post here, just wanted to share a program I wrote for my Kindle 3 with you guys because this place was a great information resource for while I was writing the thing.

AKC! is a console-based application written in C# that generates collections on your Kindle based on your Kindle's directory structure. Running it is as simple as putting it in the root directory of your Kindle, double-clicking on it, and then you're done. No user-input required, though .net 4.0 needs to be installed.

The program basically allows for emulating a "View by Folders" option on the Kindle, which sadly is not a built-in function. With that in mind, this program does nothing more than run through the directory structure of your Kindle's documents folder and adds every file to a collection based on the sub-directories it's in. For example:

x:\documents\Jim Butcher\Dresden Files\Storm Front.mobi

Storm Front is added to the collections Jim Butcher and Dresden files. As I said, it's small.

I suggest using this program with Calibre. If you do so, you can create all kinds of collections based on Calibre column values. You can, for example, add a Genre1 and Genre2 field, putting books into multiple categories such as Paranormal and Mystery, or an Read Status field, with values of Read and Unread for easy sorting of which books you've yet to go through. Simply adding the column and including it in the "Send to Disk" template, then running AKC!, will allow you to easily sort your books according to any categories you wish.

Now, as I'm sure most people are aware, there are tricks to get the kindle to display collections alphabetically (choose "Sort by Title" and have a character before the collection name, such as ( or [ to force it to the top) Here are the two I'm using, plus an extra, in from top to bottom as the Kindle will display them (with this program, you have to use symbols that can be used in folder names):

( -- These are my author collections

[ -- These are my series collections

{ -- This would follow the above two. Just FYI if anybody has a use for it.


Here is my Calibre "sending to device" template: ({author_sort}/[{series}/{title} - {authors}

If you look at it, you'll realize that if the author or series is missing, you'll end up with a folder named ( or [, respectively. The program will automatically add files in such folders to (No Collection and [No Collection, respectively. This acts as a catch-all for those books that do not belong in any other collection. For me, standalone books will end up in [No Collection, as a grouping of books that are not in a series. Same with books without a defined author; they'll appear in (No Collection. You can use whatever template you wish, and the program will use those symbols interchangeably with your template.

So, to use the program:

Download the program here.
Backup your collections.json file from your your /system/ folder(this program currently does not do so).
Put CollectionGenerator in the root directory of your Kindle.
Double-click on CollectionGenerator.
Reboot your Kindle, and your collections will be there. ^_^

Note: I do not have any DRM books, so I do not know if this will work for them. Let me know if it does, please. If not, I'll try to fix it.

Version information: Current version is .62

.6 - Initial Version
.61 - ( now creates a (No Collection collection, similar to [ created [No Series originally. [ now gives the more generic [No Collection to fit other directory templates.
.62 - Fixed a bug that caused partial matches to be dumped together. For example, books in a directory named Dr. Who Adventures would be added instead to the Dr. Who collection, if both are present.

Planned:

.7 - Will add the ability to leave user-defined collections intact. Users can create their own collections with a leading ~, which the program would leave alone when generating the directory-based collections.

Last edited by thermopyle; 12-12-2010 at 01:06 AM. Reason: Couple of misspellings.
thermopyle is offline   Reply With Quote
Old 11-28-2010, 09:22 PM   #2
daffy4u
I'm Super Kindle-icious
daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.
 
daffy4u's Avatar
 
Posts: 6,732
Karma: 2429021
Join Date: Apr 2008
Location: Long Drive, Calinadia Candafornia
Device: K1, KTSO, KFHD7, KPW1
Awe-SOME! Thanks!
daffy4u is offline   Reply With Quote
Old 11-29-2010, 01:15 AM   #3
tmb20x
Junior Member
tmb20x has a complete set of Star Wars action figures.tmb20x has a complete set of Star Wars action figures.tmb20x has a complete set of Star Wars action figures.tmb20x has a complete set of Star Wars action figures.tmb20x has a complete set of Star Wars action figures.
 
Posts: 6
Karma: 410
Join Date: Apr 2010
Device: kindle
I wonder if your program makes a new .json file?
Thank for your sharing
tmb20x is offline   Reply With Quote
Old 11-29-2010, 01:50 AM   #4
thermopyle
Enthusiast
thermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-books
 
Posts: 43
Karma: 874
Join Date: Nov 2010
Device: Kindle
Quote:
Originally Posted by tmb20x View Post
I wonder if your program makes a new .json file?
Thank for your sharing
It makes a new collections.json file in the /system folder. Be sure to back up your existing copy first, or rename it, if you want to be able to switch back to it after trying the program out or if you prefer your previous collections file. It will overwrite whatever is already present.
thermopyle is offline   Reply With Quote
Old 11-30-2010, 03:01 AM   #5
thermopyle
Enthusiast
thermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-books
 
Posts: 43
Karma: 874
Join Date: Nov 2010
Device: Kindle
I'm showing a number of downloads for the program, and plenty of views of the thread, but no real feedback so far.

For the people that are viewing but not downloading, why aren't you downloading? Are you already using another collection program and not interested in trying a different one, or does this one not fit what you're looking for (if so, why not?)

For those who have downloaded it...how did it work for you? Any issues? Recommendations?

Feedback is definitely appreciated.
thermopyle is offline   Reply With Quote
Old 11-30-2010, 06:26 AM   #6
tmb20x
Junior Member
tmb20x has a complete set of Star Wars action figures.tmb20x has a complete set of Star Wars action figures.tmb20x has a complete set of Star Wars action figures.tmb20x has a complete set of Star Wars action figures.tmb20x has a complete set of Star Wars action figures.
 
Posts: 6
Karma: 410
Join Date: Apr 2010
Device: kindle
Quote:
Originally Posted by thermopyle View Post
I'm showing a number of downloads for the program, and plenty of views of the thread, but no real feedback so far.

For the people that are viewing but not downloading, why aren't you downloading? Are you already using another collection program and not interested in trying a different one, or does this one not fit what you're looking for (if so, why not?)

For those who have downloaded it...how did it work for you? Any issues? Recommendations?

Feedback is definitely appreciated.
I'm using KindleCollectionManager_v0.4.1 and I feel good. The only thing that your program is better than KindleCollectionManager_v0.4.1 is that your program is small. I think the most people are interested in is the ability of making sub-collection (collections in collection)
tmb20x is offline   Reply With Quote
Old 12-01-2010, 03:37 AM   #7
Scott Nielsen
Groupie
Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!
 
Posts: 154
Karma: 112134
Join Date: May 2009
Location: Kuala Lumpur
Device: iPad, K3, K4, T1
Quote:
Originally Posted by thermopyle View Post
For the people that are viewing but not downloading, why aren't you downloading? Are you already using another collection program and not interested in trying a different one, or does this one not fit what you're looking for (if so, why not?)
Not quite what I'm looking for. I'm still hoping that one of you clever folks will eventually come up with solution that allow the Calibre tags - which I maintain meticulously - to create collections on the Kindle.
Scott Nielsen is offline   Reply With Quote
Old 12-01-2010, 10:04 AM   #8
thermopyle
Enthusiast
thermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-books
 
Posts: 43
Karma: 874
Join Date: Nov 2010
Device: Kindle
Quote:
Originally Posted by Scott Nielsen View Post
Not quite what I'm looking for. I'm still hoping that one of you clever folks will eventually come up with solution that allow the Calibre tags - which I maintain meticulously - to create collections on the Kindle.
You can use this program for that. Simply have your "Send to Disk" format include the Calibre tag column you wish to use as part of the file path output, then after the file is sent to the Calibre, run my program.

For example, set your Calibre save to disk template like this:

#Custom_Field/{title} - {authors}

This would put your files on the Kindle at this path:

x:/documents/Custom_Field/Storm Front - Jim Butcher.mobi (an example).

Then when you run my program, whatever tag value you have in Custom_Field will be used to create the collection, and any books with that particular tag value will be added to it.

At least, this should work. I haven't done it myself (I don't use any tags other than author, title, and series), but as long as you have Calibre output the file with the tag as the path, my program can use the directories it creates accordingly.
thermopyle is offline   Reply With Quote
Old 12-01-2010, 06:04 PM   #9
Baldrake
Connoisseur
Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.Baldrake once ate a cherry pie in a record 7 seconds.
 
Posts: 90
Karma: 1792
Join Date: Mar 2009
Device: Kindle 3, HTC Mozart
That's very cool.

Last edited by Baldrake; 12-01-2010 at 06:08 PM.
Baldrake is offline   Reply With Quote
Old 12-02-2010, 12:59 AM   #10
Scott Nielsen
Groupie
Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!Scott Nielsen goes to infinity... and beyond!
 
Posts: 154
Karma: 112134
Join Date: May 2009
Location: Kuala Lumpur
Device: iPad, K3, K4, T1
Quote:
Originally Posted by thermopyle View Post
Then when you run my program, whatever tag value you have in Custom_Field will be used to create the collection, and any books with that particular tag value will be added to it.

At least, this should work. I haven't done it myself (I don't use any tags other than author, title, and series), but as long as you have Calibre output the file with the tag as the path, my program can use the directories it creates accordingly.
Ah, interesting. If a tag creates a directory structure, does that mean if a book have, say, three tags assigned to it there will be three separate copies created on the Kindle?
Scott Nielsen is offline   Reply With Quote
Old 12-02-2010, 09:47 AM   #11
thermopyle
Enthusiast
thermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-books
 
Posts: 43
Karma: 874
Join Date: Nov 2010
Device: Kindle
Quote:
Originally Posted by Scott Nielsen View Post
Ah, interesting. If a tag creates a directory structure, does that mean if a book have, say, three tags assigned to it there will be three separate copies created on the Kindle?
No, the only thing the program does is add a book to a collection based on each subdirectory it's in. For example, if your book is sent from Calibre to this user-defined location:

x:/documents/Custom_Field_value/Author/Series/book.mobi

book.mobi will be added to the Custom_Field_value (Read/unread, etc., whatever you output), Author, and Series collections.
thermopyle is offline   Reply With Quote
Old 12-02-2010, 10:52 AM   #12
dujik
Member
dujik began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Nov 2010
Device: kindle
I tried it and its not working but probably because i`m not doing it right so let me ask you this;
Will your program work if i dont use calibre in any way and i named files as i want.
So for example i put two random books in the same folder x:/documents/ebook/
How do i achieve to collection "ebook" appear on my DX with two books under it
Is the file name crucial?
Please just dont mention Calibre in your answer, thanks.
dujik is offline   Reply With Quote
Old 12-02-2010, 11:00 AM   #13
thermopyle
Enthusiast
thermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-booksthermopyle has learned how to read e-books
 
Posts: 43
Karma: 874
Join Date: Nov 2010
Device: Kindle
Quote:
Originally Posted by dujik View Post
I tried it and its not working but probably because i`m not doing it right so let me ask you this;
Will your program work if i dont use calibre in any way and i named files as i want.
So for example i put two random books in the same folder x:/documents/ebook/
How do i achieve to collection "ebook" appear on my DX with two books under it
Is the file name crucial?
Please just dont mention Calibre in your answer, thanks.
The program does not require Calibre at all, it simply builds off the directory structure you've created on your Kindle (Calibre just makes those directories if you use it.) You can create any directories you want and the program won't know the difference between that and Calibre-generated folders.

Having said that, where are you running the program from? I just want to make sure you have it in the correct location, which is the root directory of your Kindle. Just put it on the Kindle and run it from there (it uses relative pathing and so needs that as its starting location.)

If that doesn't work, is you collections.json file in the system folder? If not, where is it? Does the program crash or give you an error? Does AKC simply not make changes to your collections, with your previous collections staying as they were, or does it wipe those out and leave you with none?
thermopyle is offline   Reply With Quote
Old 12-02-2010, 11:07 AM   #14
daffy4u
I'm Super Kindle-icious
daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.
 
daffy4u's Avatar
 
Posts: 6,732
Karma: 2429021
Join Date: Apr 2008
Location: Long Drive, Calinadia Candafornia
Device: K1, KTSO, KFHD7, KPW1
Quote:
Originally Posted by thermopyle View Post
The program does not require Calibre at all, it simply builds off the directory structure you've created on your Kindle (Calibre just makes those directories if you use it.) You can create any directories you want and the program won't know the difference between that and Calibre-generated folders.
So, it seems that if you have one book that would fall into more than one collection (tag, category...), you would have to have more than one copy of the book on the Kindle (which a couple of people were asking).

If I want a book in the "mystery" and also "paranormal" collections, I'd have to have a copy of the book in each folder? And after the book has been read I'd have to add another copy to the "books I've read" collections? Am I understanding this correctly?
daffy4u is offline   Reply With Quote
Old 12-02-2010, 11:25 AM   #15
reech
Connoisseur
reech doesn't litterreech doesn't litter
 
Posts: 97
Karma: 132
Join Date: Sep 2009
Device: Sony eReader PRS-600
Smart, this works very well for me. However, there's still no damnable 'putting your series in the right order' feature in the Kindle! At least with 3G I can always look up
reech is offline   Reply With Quote
Reply

Tags
collection, generator, kindle

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Kindle Collection Generator thermopyle Amazon Kindle 0 11-28-2010 09:07 PM
Semi Automatic copy of content to Kindle mowbray Amazon Kindle 7 02-03-2010 07:29 PM
[PRS Recollect]A folder-hierarchy-based collection generator howdypda Sony Reader 4 08-07-2009 02:33 PM
Manga on Kindle/Cybook/V3 - Automatic Photoshop Image Conversion! OsakaTom Amazon Kindle 25 03-12-2009 05:20 PM
Automatic page turning on the Kindle daffy4u Amazon Kindle 2 08-20-2008 11:41 PM


All times are GMT -4. The time now is 10:35 PM.


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