Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2026, 10:41 AM   #1
bensmuda
Junior Member
bensmuda began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2026
Device: none
title and title_sort produce same result in save template

Is this a bug? I'm new to Calibre and this is my first time using template language. The template worked when I defined it a couple of weeks ago but I think I've updated Calibre since then and found the template didn't work today.

Example
Code:
Title: The Book: A Novel
Authors: Jane Doe & John Buck
Template
Code:
{authors:list_item(0,&)}/{title:list_item(0,:)}/{title:list_item(0,:)}
Actual Result
Code:
Jane Doe/Book, The/Book, The
Expected Result
Code:
Jane Doe/The Book/The Book

Last edited by bensmuda; 04-08-2026 at 10:44 AM.
bensmuda is offline   Reply With Quote
Old 04-08-2026, 12:03 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,253
Karma: 29630732
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Preferences->Tweaks->Control formatting of title and series when used in templates
kovidgoyal is offline   Reply With Quote
Advert
Old 04-08-2026, 01:37 PM   #3
bensmuda
Junior Member
bensmuda began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2026
Device: none
Well, well. I guess it's time I read through the tweaks.

Thank you! I appreciate the work you do.
bensmuda is offline   Reply With Quote
Old 04-28-2026, 12:02 AM   #4
xenduro
Member
xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.
 
Posts: 20
Karma: 2112460
Join Date: Dec 2016
Device: many
ps i sent both tks if i am out of line i'm sure the duck guy will not help me.

# Control formatting of title and series when used in templates

save_template_title_series_sorting = 'strictly_alphabetic'
did restart
still
Best Science Fiction and Fantasy of the Year, Volume 10, The - Jonathan Strahan

sent u 10.00 send 10.00 more
for how to
make
2022 SciFi Anthology_ The Science Fiction Novelists - S. A. Gibilip Cahill & Jon Anthony Perrotti & J. I. Rogers & John Bowers
=
2022 SciFi Anthology_ The Science Fiction Novelists - S. A. Gibilip Cahill & Jon
set a max author list length
xenduro is offline   Reply With Quote
Old 04-28-2026, 12:19 AM   #5
xenduro
Member
xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.xenduro ought to be getting tired of karma fortunes by now.
 
Posts: 20
Karma: 2112460
Join Date: Dec 2016
Device: many
semmed to work(with no restart)?
====and
# Control formatting of title and series when used in templates

save_template_title_series_sorting = 'strictly_alphabetic'

now a set length of title and author and i all set....
xenduro is offline   Reply With Quote
Advert
Old 04-28-2026, 05:01 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 51,958
Karma: 180003020
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I think you are looking for the sublist option. I only use the first author_sort entry and the first author entry when sending to device so my template is:

Elibrary/{author_sort:sublist(0,1,&)}/{title} - {authors:sublist(0,1,&)}

If you substitute sublist(0,1,&) with sublist(0,2, & ), you will get the first two entries with ' & ' as the separator.

Since I use Kobo ereaders and series is supported by the device so I don't need to add it.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-04-28 140523.png
Views:	28
Size:	77.2 KB
ID:	222968   Click image for larger version

Name:	Screenshot 2026-04-28 140351.png
Views:	20
Size:	78.5 KB
ID:	222969   Click image for larger version

Name:	Screenshot 2026-04-28 140334.png
Views:	20
Size:	80.1 KB
ID:	222970  

Last edited by DNSB; 04-28-2026 at 05:08 PM. Reason: Added quotes around the ' & ' separator.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The {title_sort} replace the {title} value when doing save to disk job kevin4fly Devices 12 10-15-2018 01:45 PM
Template language uses title_sort instead of title eMole Calibre 2 03-11-2014 07:22 AM
"Save to disc" using title instead of title_sort? manawydan Library Management 4 09-22-2013 01:52 AM
Using {title} or {title_sort} with save gives the same result DrChiper Calibre 3 05-23-2013 02:53 AM
Title during 'save to disk' gets changed to title_sort miquele Library Management 2 09-02-2012 12:11 PM


All times are GMT -4. The time now is 09:45 PM.


MobileRead.com is a privately owned, operated and funded community.