I have a calibredb VBS script to copy my database epubs to a single folder in KFX format. Everything works fine unless there's a series. Then there's an extra space that comes from somewhere and messes up the titles in the Kindle index/home page.
A 'normal' conversion done within the GUI works fine, but the series and the series index aren't part of the file name. I did a conversion debug folder and everything was as expected.
The file name is OK:
Adam Hall-Quiller[01]-Quiller Memorandum, The.kfx
but the title (which is apparently what the Kindle uses to display is
Quiller[01 ]Quiller Memorandum, The.kfx
space before the series ] and no hyphen
I really just need (want) the Kindle title to be like the filename; makes it easier to sort and find things
My script template:
Code:
sCommandLine = "export --progress --all --dont-save-cover --dont-write-opf --format kfx"
sCommandLine = sCommandLine & " --single-dir --template ""{authors}-{series}{series_index:0>2s|[|]-}{title}"" --to-dir "
sCommandLine = sCommandLine & """" & sDestination & """"
Call RunProgram ("calibredb", sCommandLine, 1)
Double quotes required to get a single quote, and the Destination folder might have spaces in it so it is bracketed by quotes also
There's no spaces that I can see in the epub data, and since the template is making the file name correctly, I'm thinking that it's the PI that is inserting the space
I didn't know any way to view KFX metadata, so this was the best I could do
Maybe my template is wrong, or I'm misunderstanding how the PI is supposed to generate a title