Thanks, that looks like it worked.
I was thrown by the documentation (
https://manual.calibre-ebook.com/tem...send-templates )
Might be worth changing this section (anywhere to suggest this, as there's also an errant ' in there too)?
Quote:
1. Create a composite field (call it AA) containing {series}/{series_index} - {title'}. If the series is not empty, then this template will produce series/series_index - title.
2. Create a composite field (call it BB) containing {#genre:ifempty(Unknown)}/{author_sort}/{title}. This template produces genre/author_sort/title, where an empty genre is replaced with Unknown.
3. Set the save template to {series:lookup(.,AA,BB)}. This template chooses composite field AA if series is not empty, and composite field BB if series is empty. We therefore have two completely different save paths, depending on whether or not series is empty.
|
Changing
Code:
{series:lookup(.,AA,BB)}
to
Code:
{series:lookup(.,#AA,#BB)}