View Single Post
Old 12-25-2011, 02:40 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You need to tell calibre that the strings on lines 4 and 5 are sub-templates, not constant strings. The template should be
Code:
program:
    test(
        field('series'),
        template('{series}/{series} - Band_{series_index} - {authors} - {series_index}_{title}'),
        template('{author_sort}/{title} - {authors}')
    )
Also make sure that the template is not set in the kindle plugin (preferences -> plugins -> device interface plugins -> kindle (the right one)). The template in the plugin overrides the template in send-to-device.
chaley is offline   Reply With Quote