I've found an unexpected behavior that could be a bug, either in the plugin or in calibre's plugboard.
I have some books where the author_sort does not match the author, because I want them listed under the translator or illustrator, for instance. In particular, there's an anonymous book (no author) where I've put the translator as author_sort. In the plugboard, I use {author_sort} (plus some function and regex) in the author template. And I have the EPUB metadata writer plugin disabled.
So, I send the files to the device, the content is processed, and then I plug the device again and use the "update metadata in the device database" option from this plugin, choosing both author and title, as well as use the plugboards. This has worked nicely, but there's a stubborn book that refuses to have its author updated, and guess what book it is: the one with no author, it appears as "Desconocido" (which is "Unknown" in Spanish) so the data has been sent by calibre, because I have the device language set to English, and the EPUB file itself has no author, so there's nowhere else this word could come from.
I've checked the database with sqlite browser and indeed it contains "Desconocido" as the Attribution for this book, and updating the metadata with the plugin only says that the book was not modified. The plugboard template works as intended, it gives the author_sort name for this book, and I also use author_sort for the location of the files in the device, and it is being used correctly, so I don't think I have anything wrong in my setup. It looks like the plugboard is not being used for this book in particular, and I suspect it is because it has no author.
|