View Single Post
Old 06-16-2020, 02:20 PM   #1
Irian
Enthusiast
Irian has a complete set of Star Wars action figures.Irian has a complete set of Star Wars action figures.Irian has a complete set of Star Wars action figures.Irian has a complete set of Star Wars action figures.Irian has a complete set of Star Wars action figures.
 
Posts: 47
Karma: 450
Join Date: Mar 2011
Device: PRS-600, PRS-650, Tolino Vision 3 HD, Kobo Libra H20
Book upload, Calibre Save Template sometimes parsed, sometimes not

Hello,

I've got a column defined (with some helper columns) and it displays nicely and correctly in the book detail view for all my books. I called that column "filenamekobo", because it's the filename I want to use on my kobo - surprise.

I now set {#filenamekobo} as my save template in my device configuration.

For many ebooks this works perfectly, books get the right name and path. But for some, it simply totally stops interpreting this column and the name it sends it to the device is #filenamekobo.epub (while still showing the correct value in the book detail view). This only happens for some ebooks and I haven't yet found out what the problem there is. One detail: It always works for the same books and not for others, but it doesn't change from time to time. I have not yet determined a difference between those where it works and where not - no special characters in title or series, for example.

The whole thing starts with the column "serieswithoutthe":

Code:
{series:re(The (.+),\g<1>)}
The other columns I use are the "seriesfolderkobo"...

Code:
{#serieswithoutthe[0]}-Series/{#serieswithoutthe}/{series_index:0>2s} -
and the final "filenamekobo":

Code:
books/{series:test( {#seriesfolderkobo}, other/)}{title}
Anyone has an idea why I get this strange result with some books? Any log where I can see why sometimes #filenamekobo is correctly used and sometimes used as a string itself?

Last edited by Irian; 06-16-2020 at 03:20 PM.
Irian is offline   Reply With Quote