View Single Post
Old 08-16-2010, 03:01 PM   #1
rockeh
Junior Member
rockeh began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2010
Device: iriver Story
Send to device template

Hi guys,

Sorry if this has been posted before (I've searched but found nothing relevant), but I have the following issue: I want to create a template that will add the book series and index to the filename, but only if they exist. I mean someting like:

J Random Author - Single Book
J Random Author - Unrelated Book
J Random Author - Amazing Series 1 - I'm Doing a Trilogy, You Guys
J Random Author - Amazing Series 2 - It's Gonna Be Awesome
J Random Author - I Lost All My Inspiration

The bolded bits are what give me trouble. See, I've looked at the Python templating, and came up with these two options:


{authors} - {: $series - $series_index - }{title}
{authors} - {: %series - %series_index - }{title}


since that's what that page suggested. However, Calibre doesn't like either option, and my Python-fu is weak.

So, can anyone give me a pointer?

Thanks in advance

Last edited by rockeh; 08-16-2010 at 03:08 PM.
rockeh is offline   Reply With Quote