Possible 5.5 regression - error in template
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Charles Haley |
Bug Description
I have a custom column, with template shown below.
It's working fine in 5.4.2, but in 5.5 (and 5.6) there is suddenly a lot of errors instead of correct values.
As there were no changes on my part, nor were any of relevance mentioned in changelog, I presume a regression 5.4.2 -> 5.5.
In 5.5, template value is correctly returned for "/Fanfic/Dead" or "/Fanfic/Complete", but where in 5.4.2 was "/Fanfic", in 5.5 is TEMPLATE ERROR - EXCEPTION: Interpreter: Internal error evaluating an expression.
Windows 7 64b, Calibre portable 5.6.
Template:
program:
# Reader path
path = '';
# Book type: 0 = general, 1 = educational, 2 = FF, 3 = HP
type = 0;
age_dead = 1096;
type = in_list(
type = in_list(
type = in_list(
path = switch(type,
0, '/',
1, '/Educational',
3, '/HP',
2, strcat(
'/Fanfic',
first_non_empty(
in_list(
cmp(
days_
age_dead,
'', '', '/Dead'
)
)
),
'');
Changed in calibre: | |
status: | Fix Committed → Fix Released |
Changing the component for this bug.
assignee cbhaley
status triaged