View Single Post
Old 11-12-2010, 05:31 AM   #23
JvdW
Zealot
JvdW doesn't litterJvdW doesn't litter
 
Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
Quote:
Originally Posted by kovidgoyal View Post
Yeah this setting was moved inside the db (otherwise if you use multiple libraries, the ids can conflict).

Code:
from calibre.library import db; db = db(); import pprint; pprint.pprint(db.prefs)
will print out all the settings stored in the db, including the one you are interested in.
Thanks voor the pointer. I have made the following change, line is broken into multiples for readability:
Code:
start /wait calibre-debug -c "
from calibre.library import db; 
db=db(); 
from calibre.utils.config import prefs; 
ids = db.prefs.get('news_to_be_synced', set([])); 
ids.append(%id%); 
db.prefs.set('news_to_be_synced', ids);
"
How does that look to you?
Any room for improvement?

Thanks,

Joop
JvdW is offline   Reply With Quote