![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,621
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Problem with template in Kobo Driver
I've got this template for subtitle in the Kobo Driver, and it has been working till now (it works indeed when I send the books):
Code:
program: pags = field ("#pag"); subDes = field ("#subd_enc"); miVal = field ("#mi_val"); mediaStar = field ("#media_s"); subTitle = pags ; if (subDes) then subTitle = subTitle & "-" & subDes fi; if (miVal > 0) then subTitle = subTitle & " (" & rating_to_stars(miVal, 0); if (fractional_part (miVal) !=# 0) then subTitle = subTitle & "½" & ")" else subTitle = subTitle & ")" fi fi; subTitle Spoiler:
What has changed? As I haven't touched it since the Kobo Extended driver was deprecated. Additional info: I see the json file has as date: Jun 5, 2025, that I added another collection to ignore, and the change was fine. I've been up to date with 8 version, so I would be running the latest release at that moment. And, furthermore, it has just worked when I've sent books to the device. Last edited by Terisa de morgan; Today at 04:24 AM. Reason: Adding new info. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,403
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
What changed is that from 11 May the kobo driver now checks templates. Unfortunately it doesn't have a real book so it uses "fake" metadata. This can cause the problem you are seeing.
I think I will take out the validations. They seem to cause more problems than help. Last edited by chaley; Today at 07:01 AM. Reason: Grammar |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,403
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I've submitted a fix to Kovid.
The specific problem is that the fake metadata for your rating column is text, which can't convert to a number. You can work around the problem until my fix is released by changing Code:
miVal = field ("#mi_val"); Code:
miVal = format_number($#mi_val, 'd'); |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with template function | JohnAndJane | Library Management | 1 | 03-16-2025 01:35 PM |
Save template problem | antoon | Library Management | 12 | 08-17-2012 12:47 PM |
Driver Problem | imsoawesome | Kobo Reader | 6 | 07-22-2012 12:57 AM |
New Calibre Kobo Driver allows deleting of Kobo Free books | timlegge | Kobo Reader | 46 | 08-27-2011 10:16 PM |
Problem installing driver | zander_nyrond | Calibre | 11 | 08-02-2008 05:18 PM |