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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2010, 02:39 AM   #31
Steven_m64
Insane Programmer
Steven_m64 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2010
Device: Kindle2
It is possible, just requires a annoying method to force it to update on the kindle.
Steven_m64 is offline   Reply With Quote
Old 07-30-2010, 01:27 PM   #32
kwharrigan
Junior Member
kwharrigan began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2010
Device: Kindle
AFAIK, Already done via editing the collections.json and restarting the device. Annoying, but effective in bulk and better than using the jog dial approach.

Quote:
Originally Posted by guiyoforward View Post
hi, anyone know if there's been progress on this - i.e. Calibre-PC side creation of collecitons? thanks!
kwharrigan is offline   Reply With Quote
Old 08-02-2010, 05:47 PM   #33
eboyhan
PandaMuse
eboyhan doesn't littereboyhan doesn't litter
 
eboyhan's Avatar
 
Posts: 104
Karma: 104
Join Date: Nov 2009
Location: Florida
Device: kindle dx, kindle touch SO, kindle fire, kindle fire hd8.9
Presumably with the KDK (if it ever gets released) you could write a kindle app that would update the collections.json file from info maintained on Calibre, and then programmatically cause a restart -- still clumsy, but almost practical. You could also have an app to deliver the collections.json file info to Calibre for storage and display -- I don't know yet whether kindle app invocation could be instituted from the pc-side of the usb connection or not.
eboyhan is offline   Reply With Quote
Old 08-22-2010, 03:21 AM   #34
collection
Junior Member
collection began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Kindle
Python script

I use the Kindle mainly for research which involves a lot of pdfs. As the non-existing file management of the Kindle is frustrating I looked into creating a small script that replicates my directory structure as collections. As this thread was a good starting point it is only fair to share the result. You can find the python script here, feel free to use it however you want.
collection is offline   Reply With Quote
Old 08-30-2010, 10:06 AM   #35
0x0x
Junior Member
0x0x began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2010
Device: k3
Is the script (KindleForResearch.py) gone? I would like to have a look.
0x0x is offline   Reply With Quote
Old 09-05-2010, 10:26 AM   #36
collection
Junior Member
collection began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Kindle
Quote:
Originally Posted by 0x0x View Post
Is the script (KindleForResearch.py) gone? I would like to have a look.
I am sorry, this is the link. http://bit.ly/9dQZbe
collection is offline   Reply With Quote
Old 09-19-2010, 01:46 PM   #37
stacyk
Junior Member
stacyk began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2010
Device: Kindle 2
Collections generator for Calibre

Here's a script based on the pdf one above - that uses the metadata.calibre file to generate collections based on the authors & series.
http://gist.github.com/586965
stacyk is offline   Reply With Quote
Old 10-20-2010, 09:10 PM   #38
stacyk
Junior Member
stacyk began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2010
Device: Kindle 2
Web application to create Kindle collections from calibre.metadata

I turned the previous python script into a webpage
for any less technical readers.

http://calibrekindlecollections.appspot.com

Warning: This does not work for azw files (books from Amazon), because they don't use the same Id scheme as mobi or pdf files. They can be in your library, but they won't show up in the generated collection.

Let me know if you want any changes or have problems..

Last edited by stacyk; 10-21-2010 at 03:44 PM.
stacyk is offline   Reply With Quote
Old 11-03-2010, 10:41 PM   #39
joabsa
Junior Member
joabsa began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2010
Device: kindle
Utility for reading/writing collections.json

Modified stacyk's python script to include tags for collection creation. Uploaded it to github at
joabsa/calibrekindlecollections

Hope you find it useful

Last edited by joabsa; 11-04-2010 at 08:50 AM.
joabsa is offline   Reply With Quote
Old 12-03-2010, 06:11 PM   #40
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
Quote:
Originally Posted by joabsa View Post
Modified stacyk's python script to include tags for collection creation. Uploaded it to github at
joabsa/calibrekindlecollections

Hope you find it useful
How is this supposed to be used?
nynaevelan is offline   Reply With Quote
Old 12-03-2010, 10:29 PM   #41
joabsa
Junior Member
joabsa began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2010
Device: kindle
1.Make sure you have python 2.6 installed on your system.
2.Copy CalibreKindleCollections.py to the kindle folder
3. Open a terminal window (OSX,l linux. cmd.exe for Windows)
4. change the directory for the terminal window to the kindle folder
5. type the following and press enter
python2.6 CalibreKindleCollections.py
6. eject Kindle
7. restart/reboot Kindle
joabsa is offline   Reply With Quote
Old 12-04-2010, 06:33 AM   #42
mornington
Connoisseur
mornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enough
 
Posts: 63
Karma: 732
Join Date: Nov 2010
Device: Sony PRS-650
I've just generalised and extended the previous script a bit more to take proper care of Kindle collections.

The attached version does the following by default:

1) Creates collections from all of your authors who have at least 4 books

2) Creates collections from all tags which start with a dash (-) character

3) Cleans out any files from collections where the file is not on the kindle (or has been changed or moved from where it was when it was added to the kindle)

4) Deletes any empty collections from the kindle

All of the above activities can be switched off using command-line switches, which can also be used to *enable* creating collections based on your series (I switched this off by default as personally I prefer not to do this en masse).

There's also a command-line switch to decide whether to update your existing collections or to recreate them from scratch based solely on the data in calibre (warning: The latter will remove all pre-existing collections and create new ones based *just* on what's in calibre).

There are a few config options at the head of the python file, to define minimum thresholds for each collection type and standard prefixes for collection names of each type. Those can be edited to define your own personal preferences.


The simplest way to use the script under Windows is to download and install Python v2.6, copy the script to the root folder of your Kindle and then just double-click the script file. If you want to add command-line switches, open a command-line prompt first.

Before running this script (or the earlier ones on this thread for that matter) make sure that your kindle contains the up to date metadata from your calible. The simplest way to do this is to set "Metadata Management" in Calibre to "Automatic management" (in Preferences -> Sending books to devices) and then exit calibre completely and then start it up again (or, alternatively, disconnect your kindle and then re-connect it). That will force calibre to send its current metadata to the kindle.

Last edited by mornington; 12-04-2010 at 08:30 AM. Reason: Removes attachment - see later post for replacement script
mornington is offline   Reply With Quote
Old 12-04-2010, 06:35 AM   #43
mornington
Connoisseur
mornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enough
 
Posts: 63
Karma: 732
Join Date: Nov 2010
Device: Sony PRS-650
Oh, the python code in my revised script probably isn't the most efficient/elegant possible, since this is the first time I've ever attempted to write anything in Python.
mornington is offline   Reply With Quote
Old 12-04-2010, 06:39 AM   #44
mornington
Connoisseur
mornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enough
 
Posts: 63
Karma: 732
Join Date: Nov 2010
Device: Sony PRS-650
Ack, forgot to mention: The same caveats apply to this script as to the other versions.

Specifically: After running the script, you *must* restart your kindle in order to see the changes to your collections.
mornington is offline   Reply With Quote
Old 12-04-2010, 07:08 AM   #45
mornington
Connoisseur
mornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enough
 
Posts: 63
Karma: 732
Join Date: Nov 2010
Device: Sony PRS-650
Oh. One other thing:

If you have any books which are in Calibre and on your Kindle but which are not assigned to a specific collection then the revised script automatically gathers them up into a single collection named "- Miscellany".

This is basically just to help tidy up the home page of the Kindle when viewing in "Collections" mode.

As an aid to viewing in "sort by title" mode, all collections created by the script start, by default, with a dash then a space at the front of the collection name. This lists them neatly at the head of the "sorted by titles" listing. The precise prefix to use (which can be blank, if you don't want a prefix at all) can be set with the prefixTYPE variables at the start of the script.

I think that's everything now.
mornington is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle, Calibre, & Fetch News sacoward Amazon Kindle 6 11-16-2010 09:50 PM
Periodicals generated by calibre not using kindle back issue archiving alessandro Calibre 6 08-09-2010 01:33 PM
Calibre & Kindle DX Collections deborakaye Calibre 4 08-05-2010 03:13 PM
Using calibre for Sony Pocket & Kindle grizedale Calibre 3 08-04-2010 02:00 PM
Newbie question about Kindle & Calibre mdumas Calibre 3 05-26-2010 04:30 PM


All times are GMT -4. The time now is 05:15 PM.


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