05-21-2022, 02:19 AM | #1 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Dec 2021
Location: Berkshire, UK
Device: Kobo Libra 2
|
Change in Series Index when saving books to disc
Hi,
I've recently changed laptops, so copied my Calibre library from one machine to the other. Now when using 'Save to disc' I've noticed a difference in the handling of series_index, which is now causing duplicates in my exported library. For example ... Previous behaviour: ...\Books\Sanderson, Brandon\Stormlight Archive, The\02 Words of Radiance - Brandon Sanderson.epub ...\Books\Sanderson, Brandon\Stormlight Archive, The\2.50 Edgedancer - Brandon Sanderson.epub Current behaviour: ...\Books\Sanderson, Brandon\Stormlight Archive, The\02 Words of Radiance - Brandon Sanderson.epub ...\Books\Sanderson, Brandon\Stormlight Archive, The\2.5 Edgedancer - Brandon Sanderson.epub So the issue only affects books with a non-integer series_index. I don't know if this is a change in Calibre behaviour, or a change in laptop (was Win10, now Win11). My save template is unchanged: {author_sort}/{series}/{series_index:0>2s} {title} - {authors} Any thoughts? Thanks, Nigel Last edited by w00dent0p; 05-21-2022 at 02:22 AM. |
05-21-2022, 05:29 AM | #2 |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
There was a change on 19/Feb to strip trailing zeros from series indices. The change appeared in calibre V5.38. I strongly doubt that it will be changed back.
You have three choices:
|
05-21-2022, 05:36 AM | #3 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Dec 2021
Location: Berkshire, UK
Device: Kobo Libra 2
|
Thanks, that explains it. I already went with choice 2.
Can you please clarify the template meaning a little more? Is there a way to achieve a consistent format across both float and integer? i.e. xx.x for both? |
05-21-2022, 05:45 AM | #4 | |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{author_sort}/{series}/{series_index:format_number(0.1f)} {title} - {authors} Also and FWIW: the first template uses Template Program Mode. The one in this post uses Single Function Mode. My personal preference is General Program Mode, but I didn't provide an example in that mode. |
|
05-21-2022, 05:52 AM | #5 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Dec 2021
Location: Berkshire, UK
Device: Kobo Libra 2
|
Thanks again.
That seems to result in xx.x, except for x.x when the index is less than 10. Any way to always get xx.x ? i.e. to pad with the leading zero when needed. |
05-21-2022, 05:53 AM | #6 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I wish people would stop requesting these changes. This change and the search are two changes that would be best (IMHO) to go back to the way they were.
|
05-21-2022, 06:03 AM | #7 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Dec 2021
Location: Berkshire, UK
Device: Kobo Libra 2
|
I've removed {series} and {series_index} from my template.
Since this stuff is subject to change, I decided it's a bit too much of a faff to deal with the resulting duplicate files. |
05-21-2022, 07:33 AM | #8 | |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{author_sort}/{series}/{series_index:format_number(04.1f)} {title} - {authors} |
|
05-21-2022, 07:35 AM | #9 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Dec 2021
Location: Berkshire, UK
Device: Kobo Libra 2
|
Thanks very much !!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change series index number format sent to device? | Skydog | Library Management | 6 | 01-20-2020 10:21 PM |
Python - Saving Books to Disc | amimichelle | Library Management | 0 | 03-16-2017 11:01 AM |
Saving Books to Disc - Some Help Please? | Alidai | Library Management | 1 | 10-28-2013 02:40 AM |
Saving to disc | wjt | Library Management | 5 | 03-24-2012 05:03 PM |
Saving to Disc | deddajay | Library Management | 2 | 01-15-2012 03:02 PM |