View Single Post
Old 10-23-2012, 09:39 AM   #1
Pepin33
Zealot
Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.
 
Posts: 109
Karma: 419
Join Date: Aug 2012
Location: Spain
Device: Kindle Touch
Post Updating metadata with capitals

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?

Last edited by Pepin33; 10-23-2012 at 12:26 PM.
Pepin33 is offline   Reply With Quote