View Single Post
Old 11-04-2014, 01:41 PM   #1
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Author/Title sort

I wrote a little plugin that reads the metadata of books using self.db.get_metadata, then changes the values of the author and/or the title and writes the data back using self.db.set_metadata.
Everything works.
What I don't get to work, how do I set author_sort and/or title_sort of my changed values? Is there a function that I can use to calculate and write them back?

One more question, I also use QProgressDialog, it works, but it always shows "libprs500" in the header of the progress window. How do i get rid of this?
WS64 is offline   Reply With Quote