View Single Post
Old 02-08-2011, 04:40 AM   #35
JvdW
Zealot
JvdW doesn't litterJvdW doesn't litter
 
Posts: 115
Karma: 146
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
Mark book to be send to device on next connect

Hi Kiwidude,

First of all thanks for you currently slew of plugins, nice work!.

As the title suggests a plugin which would do that would be great for some people. Saw a question in the Frequently Asked Questions thread by ArmorDog and quite liked the idea.

Question was:
--
Is there a way to flag books to transfer when the reader is next connected?

Often, when working in Calibre, I don't have my reader hooked up. When I finish fixing up a book, I'd like to flag it to be copied to the reader when it's next connected.
--

I used something like it while I downloaded the NRC epub using a script and used a bit of python code to set the News flag for the imported epub. This has the effect that on next connect of my reader it was automatically sent to it.
This is the relevant line:
Code:
calibre-debug -c "from calibre.library import db; db=db(); from calibre.utils.config import prefs; ids = db.prefs.get('news_to_be_synced', []); ids.append(%id%); db.prefs.set('news_to_be_synced', ids)"
Where %id% is the id of the book that you want flagged.

Might have a try at it myself but you're free to grab the idea and beat me to it

Regards,

Joop
JvdW is offline   Reply With Quote