OK, I am confused. That plugboard cannot produce what you are seeing, which means that either it is not being executed or that something else is changing the opf inside the book.
One thought: there is code in calibre to detect the word " and " in author strings and change it to " & ". This has the effect of splitting the author string into multiple authors. Try changing the '\1 and ' in the re function to '\1 aanndd ' and see if something different happens.
The above does not explain how the series got into the second author or how the author order got inverted. It almost looks like the kobo is parsing file names instead of using the opf.
|