01-20-2011, 04:19 PM | #46 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Kindle
|
I was running it with the --rb, but not --nc . It seems my problem is end user related though. I did not see that mornington had posted another version of the script further down the first page. I was using the script in the zip file form the first post. Thanks for taking a look at it though and I would greatly appreciate the bat files you are using to rebuilt and update.
Thanks again. |
01-20-2011, 04:21 PM | #47 | |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
Quote:
|
|
01-20-2011, 04:39 PM | #48 | |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
Quote:
They go in the Kindle root with the collections script. Makes things superfast and painless. I just use Calibre to add books, close Calibre, open the Kindle root in Explorer, double click the bat file, wait for it to run then eject and restart. |
|
01-26-2011, 07:16 AM | #49 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2011
Device: Kindle
|
Need help to understand collections.Json file
I understand that file references in the kindle's collections.json file are SHA1 hashes of the full filename and path.
I have figured out how to write some .net code to replicate these hashes as a first step to writing my own kindle book collection utility. here's the code: Public Shared Function GetHash(ByVal fileName As String) As String '[TODO] ** Files with an _ in them do not encode the same as on the kindle! WHY?? Dim bytes As Byte() = Encoding.UTF8.GetBytes(fileName) Using hashAlg As HashAlgorithm = New SHA1Managed hashAlg.TransformFinalBlock(bytes, 0, bytes.Length) Return String.Format("*{0}", BitConverter.ToString(hashAlg.Hash).Replace("-", String.Empty).ToLower) End Using End Function What i DO NOT UNDERSTAND is that if one of the books has an underscore '_' in the filename, then i get different hash using the above function than what is generated by the Kindle. For all other files, the hash is the same. Why are underscores treated differently and are there any other special characters that are similar to underscores? How do adapt my code to manage this? thanks in advance Matt |
01-26-2011, 08:21 PM | #50 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2011
Device: Kindle
|
Quote:
What are the unusual charaters and how do you fix these? can you point me to where this is done in the script please? |
|
01-26-2011, 09:33 PM | #51 | |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
Quote:
I wish I could be more help, but I use a slightly modified version of the first script. I looked at this second one but I couldn't find anything more specific than what I've already stated. I know enough about the script to get it to do what I need it to, but not enough to provide much in the way of support. I know very little Python. If you're still trying to work out the underscore issue with your .net script or need more help with this Python script, you might want to try the Kindle Developer's sub-forum here at MobileRead. It can be found inside the Kindle forum at the top (right above the stickies). |
|
01-27-2011, 05:31 AM | #52 |
Enthusiast
Posts: 27
Karma: 574
Join Date: Nov 2010
Device: kindle
|
I just want to express my thanks to mornington for this script. A great idea and it works a treat!
|
01-27-2011, 07:01 AM | #53 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2011
Device: Kindle
|
Quote:
|
|
01-27-2011, 11:55 AM | #54 |
Member
Posts: 14
Karma: 10
Join Date: Jan 2011
Location: Toronto
Device: Kindle 3
|
Thanks for a great script. Seems to work OK. I just need collections by author, so I removed all the "miscellany" and others auto-collections code. It's easy to remove it. I have many of those ASCII errors (have 100+ russian books), but the actual books seem to be fine, added into collections etc. Out of 500+ books I have two or three that seem to be stuck and not added to collections, and Lewis Carril's Alise gets added to its own collection every time, despite it's just one book (other lonely books do not get their collections as I intended). I will post if I can resolve this.
------- Roman Bershadsky Web designer, Roman Design Toronto web design studio |
01-27-2011, 01:15 PM | #55 |
Sigil developer
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
I've just posted a new Create Kindle Collections plugin for Calibre at
https://www.mobileread.com/forums/sho...d.php?t=118635 Its still new, but if you want to try it, feel free to head over to the link, download it and post comments in that thread. I started it after reading this thread and seeing that development had stopped. I've taken a slightly different approach in that I ignore the existing collections on the Kindle since I just want to use Calibre as the source data so it might not be for everyone. |
01-27-2011, 04:12 PM | #56 |
Member
Posts: 14
Karma: 10
Join Date: Jan 2011
Location: Toronto
Device: Kindle 3
|
This is amazing, I wonder why anybody didn't do it before. I'm going to check it out and see if it works. Thanks for the effort!
|
01-27-2011, 04:18 PM | #57 |
Member
Posts: 14
Karma: 10
Join Date: Jan 2011
Location: Toronto
Device: Kindle 3
|
Just reporting, a follow-up on my script test: same three books are left our, and same book has put in a collection alone. Out of 500+ books that's not bad, I easily reassign those books in Kindle in a couple of minutes.
|
11-26-2013, 04:53 PM | #58 |
Member
Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
Since the Calibre collections plugin doesn't work on the Kindle PW1-2, would that first technique of mornington work? (configurable python script)
Trying desperately to find a way to manage collections within calibre |
11-26-2013, 08:00 PM | #59 | |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
However, if you jailbreak your Kindle, the collections manager plugin can set collections for the Kindle Touch/PW/PW2. |
|
Tags |
calibre, collections, kindle, kindle 3 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-300 creating collections | terraskye | Sony Reader | 4 | 11-28-2010 10:01 AM |
Collections data format in 2.5 firmware | ngukho | Kindle Developer's Corner | 18 | 10-29-2010 11:19 PM |
Backing Up Data (Collections) | Cpl Punishment | Amazon Kindle | 14 | 10-27-2010 01:41 PM |
Calibre and creating Kindle collections on the PC? | guiyoforward | Calibre | 1 | 07-30-2010 02:11 AM |
Creating collections within collections | larlissm | Sony Reader | 2 | 10-04-2008 08:02 PM |