Quote:
Originally Posted by Jankomatic
Vista 64 bit
Python 2.7
No changes to the script, I am running it like this though:
CalibreKindleCollections.py --na --nt --verbose > CKC.log
Take a look at the first of the log file, you see a series call A Song of Fire and Ice, it has 4 books in it. After restarting my Kindle it only has 2 books in that series, the third and fourth ones. The other two books in the series appear in the list after all the collections are listed. Like I said it does all the collections like this, it puts seemingly random books from the series in the collection, then the rest just dumps at the end. Looking at the next section of the log, it looks like it is working correctly, but again on the Kindle it doesn't look like that.
Thanks for taking a look.
|
I had this same problem with some books. I was starting to think I was the only one, but fortunately this means I can tell you how I fixed it. For some reason, it sometimes detects files as "dead" (no longer there) and the cleanup function pops them back out of the collections. Try this:
CalibreKindleCollections.py --rb --nc --na --nt --verbose > CKC.log
The --rb runs it as a rebuild (rebuilds all collections from scratch).
The --nc will stop it from cleaning up files it thinks are not there.
Eject, restart, and after 5-10 seconds or so, you should see all your collections the way they should be. After running it this time, for future updating you can leave the --rb off unless you really do need to rebuild them all.
After this, the only files that will still get kicked out are those with Amazon ASINs (with EBOK in the hash) but you only have a few of those and it doesn't look like they are in series anyway so that shouldn't be an issue. I just wanted to bring it up in case you do more collections later with tags or authors. There is a method mentioned somewhere around here for adding them to the script for handling but unless you have a lot, it's not worth the time, IMO.
Using the --nc option shouldn't cause any problems. I've been doing it this way for over a month and I've never had a problem with "ghost" deleted files showing up anywhere. If you do a lot of deleting books off the Kindle, though, you may want to run a rebuild once in a while to make sure the collections.json doesn't get leftover entries in it.
Let me know how this works for you. I have two bat files I use (one for rebuild, one for updating). I stick them in the Kindle root with the script so I just have to double click the one I want to use. Let me know if you want to see them them and I'll copy them over and attach - you'll just have to change the python path and switches you want to use.