Quote:
Originally Posted by Divingduck
Oh, my fault...
This one should work like you want
Code:
program:
contains(ifempty(field('series'),'-'),'-',template('{authors} - {title}'),template('{authors} {series:|(| }{series_index:0>5.2f|#|)} {title}'));
Remark:
Its working in program mode.
I check for series and give back series or '-' if there is no series.
contains check for '-' and use then one of the two template structures.
Not elegant but works.
Edit: Forgot to mention that you need to copy the complete string (both lines) in your template. You can do this direct or via the template editor
|
Looking at your code, I suspect that it will write all the books into a single directory instead of the default Author_Sort directories inside the selected Save to directory.
I suspect adding {author_sort}/ to the templates between the ' and the {author} would return to the default saving into author_sort folders.
Code:
program:
contains(ifempty(field('series'),'-'),'-',template('{author_sort}/{authors} - {title}'),template('{author_sort}/{authors} {series:|(| }{series_index:0>5.2f||)} {title}'));
Serial numbers filed off and saved for future reference....