View Single Post
Old 05-07-2024, 08:52 PM   #4
tsparr
Junior Member
tsparr began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2024
Device: Kindle Paperwhite (11th Generation)
Quote:
Originally Posted by chaley View Post
From the Advanced formatting section of the template language manual:
The last template expression
Code:
{series_index:0>2s| - | - {title}}
does exactly that. I suspect you want
Code:
{series_index:0>2s| - | - }{title}
It also isn't obvious why you want the series twice in the path

IMO a template of this complexity should be written in Template Program Mode (TPM). Not only is branching easier, TPM templates are much easier to debug.
The problem if I do {title} outside of the template expression is that I would then have the title of the book in the filename twice if it's not in a series. The intent is to match up with a program I used called Kavita and their intended library structure of:
Library Root
┖── Series Name
┖── Series Name.epub

I'll look into the TPM template.
tsparr is offline   Reply With Quote