View Single Post
Old 10-24-2012, 06:50 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,910
Karma: 5035037
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Works for me

Code:
calibre-debug -c "from calibre.library import db; db = db(); id = list(db.all_ids())[-1]; orig = db.title(id, True); upper = orig.upper(); db.set_title(id, upper); print orig, db.title(id, True)"
And set_metadata() just calls set_title(). So your problem is elsewhere.
kovidgoyal is online now   Reply With Quote