Quote:
Originally Posted by kovidgoyal
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