Quantcast
Channel: MobileRead Forums - Calibre
Viewing all articles
Browse latest Browse all 31491

Updating metadata with caps

$
0
0
I'm trying to update some metadata fields (titles, authors and series) from a plugin.

I'm using a Metainformation object to fill the metadata, and then updating it like that:

Code:

mi = Metainformation(None)
mi.title = "My title"
mi.authors = ["Some autor"]
mi.series = "My series"
self.db.set_metadata(book_id, mi)

It works OK. But when I update a book's string value (like title, authors or series) with same string but changing capitals, old value rest unchanged. Why?

I mean for example: I have a book titled "Mi new book". If I want to change this to "Mi New Book", it doesn't work, and old value for title stays ("Mi new book", without capitals).

How can I solve this?

Viewing all articles
Browse latest Browse all 31491

Trending Articles