12-25-2010, 02:30 PM | #31 |
Guru
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
the print lines would now be: (your line 54 only)
Code:
print ("[[PHASE: CREATING MISCELLANY COLLECTIONS]]\n") |
12-25-2010, 04:38 PM | #32 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2010
Device: Kindle 3
|
Quote:
EDIT: I just got my Kindle and Collections do not seem to work how I thought they would. Is it not possible to switch between collection view and a view that just dumps all the books? I was hoping to have collections for my book series but still be able to find all of my books that do not have a series in the "non collection" view. Is this not possible? Last edited by MrTissues; 12-25-2010 at 04:47 PM. |
|
Advert | |
|
12-25-2010, 08:33 PM | #33 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
I'm having a weird problem, every time I try to load either version of the script I'm getting an import error where it says no module named json. I feel like there is probably an obvious solution to this problem, but it eludes me. Could it be because the system file is hidden possibly? (I checked, the json file is there).
Thanks for any help. Oh, and its Kindle 3 from 64bit Windows 7 with Python 2.7. I tried using admin command line as well to no avail. |
12-25-2010, 10:39 PM | #34 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2010
Device: Kindle 3
|
Okay I figured out my above question. One last final question. When importing a series is it possible to add a number such as 1 or 2 in front of the title so that they will be forced to be in correct series order? It would be best if I could keep the names the same in the general view but only have the numbers in the collections.
|
12-26-2010, 05:45 AM | #35 |
Connoisseur
Posts: 63
Karma: 732
Join Date: Nov 2010
Device: Sony PRS-650
|
First off - the script's written under Python 2.7 (as I note in the installation, erm, notes). It won't work under Python 3, which apparently breaks all backwards compatibility.
Secondly, I'm afraid I can't help with the script at all anymore as I no longer own a Kindle: Basically, I got so annoyed by all the various problems with the Kindle's interface (like collections management, which I wrote this script to solve, but also the constantly changing and unreliable Kindle date/time setting; the annoying and almost constant indexing of books, which can't be reliably switched off permanently; the very sluggish response when more than about 1200 books are loaded onto it, etc, etc)... So, basically, I sent the Kindle back, got a refund and have now bought a Sony PRS-650, which I'm much happier with. This does mean, however, that I'm unable to help any more with extending/refining the script. |
Advert | |
|
12-26-2010, 05:47 AM | #36 | |
Connoisseur
Posts: 63
Karma: 732
Join Date: Nov 2010
Device: Sony PRS-650
|
Quote:
However, look into calibre's metadata plugboards, as those can do this for you. But there are some Kindle-specific pitfalls along the way, so you may need to experiment a bit. |
|
12-26-2010, 06:01 AM | #37 | |
Connoisseur
Posts: 63
Karma: 732
Join Date: Nov 2010
Device: Sony PRS-650
|
Quote:
|
|
01-19-2011, 02:59 PM | #38 | |
Groupie
Posts: 167
Karma: 2627964
Join Date: Aug 2010
Location: Alabama, USA
Device: Kobo Aura One, Kobo Libra 2
|
Quote:
I've had the thing for less than 5 days now and I'm still struggling to get the thing organized the way I want it. Again, I'm spending most of my time up to my elbows in Calibre, plugboards, and Python. I have yet to actually READ on the darn thing! I'm going back to my Sony 650. While the K3 was a lovely gift, it's proving once again that it's just not the device for me. |
|
01-19-2011, 09:22 PM | #39 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Kindle
|
Is there an easy way to remove all the things the script does for collections, so back out changes it made.
Thanks |
01-19-2011, 09:42 PM | #40 | |
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:
If you've already used the script and don't like the results and have no backup, one quick but customizable way to get rid of the collections is by installing Kindle Collection Manager. There is more info about that app in this thread. If you use it, you can either delete all of the collections, or keep the ones you want as well as making changes to them. You can also use Kindle Collection Manager to manage your collections by itself, but I like the functionality of the script so I've been using it instead. |
|
01-20-2011, 12:58 AM | #41 |
Wizard
Posts: 1,105
Karma: 1025784
Join Date: Oct 2010
Device: WiFi Kindle3
|
There's also this method:
http://www.accwebworks.com/kindle.aspx which does rely on your creating a text file containing your kindle's folder structure. I found it easy to use. You have to trust that the web site is not going to do anything odd to your text file but the file it generates is a collections.json file which you can read for safety. |
01-20-2011, 08:50 AM | #42 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Kindle
|
The script does not work properly for me for some reason. It did not compile any collections correctly. I have multiple series with 5+ books in them and it makes a series and usually puts half of them in that collection and then creates a different collection for the other half. I have verified multiple times that they are set up correctly in Calibre first. I am not using TAGS and have author collections turned off on the command line. So not sure why it is messing up.
|
01-20-2011, 12:42 PM | #43 | |
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:
Computer operating system? Python version? Have you made any changes to the script? Are you using logging? If not, add: --verbose > CalibreKindleCollections.log to the end of the command line string you are using. This will create and deposit a log file into the directory you run the script from (usually the Kindle root unless you're running it with a mount point from elsewhere). Attach that to your reply here and I'll take a look at it. |
|
01-20-2011, 03:50 PM | #44 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Kindle
|
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. I have deleted the json file and had it run from scratch multiple times and even run it with the --rb option, always seems the same except for one thing. It always seems to put the same number of books in the collection for example Song of Fire and Ice it always puts 2 books in that collection, but the 2 it "picks" are random. They aren't the same each time for any series it makes a collection for. Thanks for taking a look. Last edited by Jankomatic; 01-20-2011 at 04:05 PM. |
01-20-2011, 04:14 PM | #45 | |
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:
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. |
|
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 |