View Single Post
Old 10-20-2016, 02:53 PM   #1
MicaOlaAdams
Member
MicaOlaAdams began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Oct 2016
Device: Kobo Aura One
Problem with contains function in save template

Hi everybody,

I set the following save template
Code:
{#genre:contains(Sachbuch, {title}, {author}_{title})}
The idea is to save books with the "Sachbuch"-genre only by title and any thing else by author and title.

Now every book that has any of the following characters in its title throws an error
Code:
, { } ( )
Code:
ValueError: Failed to calculate path for save to disk. Template: {#genre:contains(Sachbuch, {title}, {authors}_{title})}
    Error: Incorrect number of arguments for function contains
I suppose this is because those characters are part of the function itself.

Any ideas how to solve this problem?
MicaOlaAdams is offline   Reply With Quote