|  06-13-2025, 09:23 AM | #16 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			Then this should work, again assuming that the fractional part is always 2 digits. Code: program: if '^omnibus$' inlist_field '#admintags' then series_start = floor($series_index); fraction = fractional_part($series_index); if fraction ==# 0 then result = series_start else series_end = floor(fraction*100); if series_end >=# 0 then result = series_start & '-' & series_end fi fi else result = $series_index fi; result | 
|   |   | 
|  06-13-2025, 11:41 AM | #17 | 
| Custom User Title            Posts: 11,340 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | 
			
			I did some editing to remove 0s from both omnibuses and non-omnibuses. Worked as expected. Code: program: if '^omnibus$' inlist_field '#admintags' && $series_index !=#0 then series_start = floor($series_index); fraction = fractional_part($series_index); if fraction ==# 0 then result = series_start else series_end = floor(fraction*100); if series_end >=# 0 then result = series_start & '-' & series_end fi fi elif $series_index ==#0 then result = '' else result = $series_index fi; result I have just one book that uses 6.1 for 6-10 (Calibre removes the trailing 0.) Suggestions? I was thinking of splitting it as I have a few books from the series in physical format anyways. Last edited by ownedbycats; 06-13-2025 at 11:49 AM. | 
|   |   | 
|  06-13-2025, 01:04 PM | #18 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 Ahhh, I see. The fractional part of 6.1 can come out as ".099999999999" instead of ".1". To fix it, change line 10 to be Code: series_end = round(fraction * 100); | |
|   |   | 
|  06-16-2025, 03:03 PM | #19 | 
| Custom User Title            Posts: 11,340 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | 
			
			btw, when expected to come out of source? (preview or release.) Building from source is slow, and when I use stable I occasionally forget to change back to preview before connecting.
		 | 
|   |   | 
|  06-16-2025, 03:07 PM | #20 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 Interesting what you say about running from source. I see almost no difference. | |
|   |   | 
|  06-16-2025, 04:10 PM | #21 | 
| Custom User Title            Posts: 11,340 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | 
			
			It's mostly opening viewer and editor. Takes sometimes 30 seconds or a minute.
		 | 
|   |   | 
|  06-16-2025, 04:13 PM | #22 | 
| Grand Sorcerer            Posts: 6,686 Karma: 12595249 Join Date: Jun 2009 Location: Madrid, Spain Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2 | 
			
			You can do a different thing. If you know which are the files which have changed, compile them and replace the original ones in a standard installation. And yes, it works.
		 | 
|   |   | 
|  06-16-2025, 10:20 PM | #23 | 
| creator of calibre            Posts: 45,601 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			I have been travelling for my annual vacation so there will be some time before there is a release of any kind.
		 | 
|   |   | 
|  06-17-2025, 07:17 AM | #24 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			The changes are now in calibre source and will be in the next release/preview.
		 | 
|   |   | 
|  06-17-2025, 08:23 AM | #25 | 
| Resident Curmudgeon            Posts: 80,718 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | |
|   |   | 
|  06-17-2025, 08:37 AM | #26 | 
| Custom User Title            Posts: 11,340 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | |
|   |   | 
|  06-17-2025, 09:47 AM | #27 | 
| Well trained by Cats            Posts: 31,241 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | |
|   |   | 
|  06-20-2025, 11:13 AM | #28 | 
| Resident Curmudgeon            Posts: 80,718 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			I think this update broke the KoboTouch driver. I have no problem in 8.4.0 but do in 8.5.0. Now I'm getting told that my template for deciding if an ePub should be KePub or not is invalid. The template is working as I've send an ePub and KePub no problem. I'm thinking the error is due to the change for series numbering. This is what I get when I make any changes to the options or just click OK. Code: calibre, version 8.5.0
ERROR: Invalid template for Use Kobo viewer for EPUB books: <p>The template "program:
	check_yes_no("#kepub", 0, 0, 1)" is invalid:<br>Interpreter: Internal error evaluating an expression: ''str' object has no attribute 'get'' - line number 2Last edited by JSWolf; 06-20-2025 at 11:22 AM. | 
|   |   | 
|  06-20-2025, 11:38 AM | #29 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 I'm looking at how to fix it now. | |
|   |   | 
|  06-20-2025, 12:18 PM | #30 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			Turns out that the changes in May are (mostly) correct. It is illegal to use check_yes_no() outside the GUI, for example in the kobo device driver. It worked by accident. Replace the template with Code: program: $#kepub == 'yes' Last edited by chaley; 06-20-2025 at 12:23 PM. | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Sage Add series / series index to Kobo | baursak | Kobo Reader | 31 | 06-02-2024 09:37 PM | 
| Searching on the highest series_index od series | rolgiati | Library Management | 2 | 04-24-2023 02:24 PM | 
| [Kobo] Series and series_index issue | codychan | Devices | 11 | 04-06-2021 09:15 PM | 
| Series Index displayed as separate column from Series | Vortex | Library Management | 3 | 03-15-2015 08:39 PM | 
| Need text box to float left beside image | eggheadbooks1 | ePub | 35 | 06-06-2013 07:18 AM |