Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 07-19-2024, 08:41 AM   #1
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
KoboTouch and new tolino devices

Since the new tolino devices are based on an adapted Kobo FW, it would be great to have them supported just as the Kobo devices. But since there are some differences (it's firmware version 5.x) it needs some work. What I noticed, for example, is that there seems to be no image tree for the covers anymore.

I did try to adapt the driver to the new devices, and doesn't look too bad. In my case, upoading books and covers seem to work very well. What doesn't work is putting books into collections. I don't know yet, why.

Now I'm not sure where to go from here.

Perhaps someone who is more experienced could have a look at my changes?

At least it seems to not break anything, since my Clara 2E works with the changes as before.

(But of course I don't know what happens when kobo devices go for fw 5.x …)

Last edited by beedaddy; 07-19-2024 at 08:44 AM.
beedaddy is offline   Reply With Quote
Old 07-19-2024, 09:21 AM   #2
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
Adding books to collections works now. I've no idea, why "false" in the SQL query doesn't work anymore. Using false (no quotation marks) works. But in both databases (Clara 2E and tolino shine 5), the field is BOOL.

I'm also not sure whether more queries need to be adapted accordingly.

But for me, it looks ok now.
beedaddy is offline   Reply With Quote
Old 07-19-2024, 09:35 AM   #3
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: 44,480
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
false without quotation marks is correct in modern sqlite. Thoug it is better to use 0 and 1 for false and true as booleans are stored in sqlite databases as integers it doesnt have a separate boolean datatype. See
https://www.sqlite.org/datatype3.html
kovidgoyal is offline   Reply With Quote
Old 07-19-2024, 09:38 AM   #4
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: 44,480
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Looking at the rest of the driver, it should probably be 'false'

Try changing

Code:
        query = 'SELECT Name FROM Shelf WHERE _IsDeleted = "false"'

to

        query = "SELECT Name FROM Shelf WHERE _IsDeleted = 'false'"
that will hopefully work with both
kovidgoyal is offline   Reply With Quote
Old 07-19-2024, 09:44 AM   #5
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
Quote:
Originally Posted by kovidgoyal View Post
Looking at the rest of the driver, it should probably be 'false'
Yes, that works. Thanks!
beedaddy is offline   Reply With Quote
Old 07-19-2024, 09:51 AM   #6
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
Quote:
Originally Posted by kovidgoyal View Post
Looking at the rest of the driver, it should probably be 'false'
Quote:
Originally Posted by beedaddy View Post
Yes, that works. Thanks!
Wait. No! Doesn't work with 'false'. I did the test first with the wrong (i.e. Kobo) device.

Last edited by beedaddy; 07-19-2024 at 09:54 AM.
beedaddy is offline   Reply With Quote
Old 07-19-2024, 09:59 AM   #7
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
And btw, using 0 doesn't work with the Kobo device (Clara 2E).
beedaddy is offline   Reply With Quote
Old 07-19-2024, 10:35 AM   #8
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: 44,480
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by beedaddy View Post
And btw, using 0 doesn't work with the Kobo device (Clara 2E).
yes, false without quotes and 0 are the same thing.
kovidgoyal is offline   Reply With Quote
Old 07-19-2024, 10:38 AM   #9
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: 44,480
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm well then as far as I can tell the two firmwares are storing different things in that column. Which would imply that kobo is unlikely to ever move to that firmware.
kovidgoyal is offline   Reply With Quote
Old 07-19-2024, 04:43 PM   #10
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
So, again I'm not sure where to go from here. Perhaps someone who knows more about this driver could have a look a the changes, if they are problematic in any way. Or should I just create a pull request and see what happens?
beedaddy is offline   Reply With Quote
Old 07-20-2024, 12:21 AM   #11
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: 44,480
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Wait a few days someone else might have something to say, if not create a PR. I dont have accesss to Kobo hardware it isnt sold in my country so I can only make general comments.
kovidgoyal is offline   Reply With Quote
Old 07-20-2024, 05:53 AM   #12
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
Good idea. So again, it would be great if someone could take a look at the code changes >>here<<.
beedaddy is offline   Reply With Quote
Old 07-23-2024, 04:36 AM   #13
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
To sum that up, for me it looks like that, for whatever reason, the kobo firmware 4.x and thus the kobo touch driver use the strings "true" and "false" as boolean values. Which seems not to be correct in a sqlite sense. The (tolino) fw 5.x does it the correct way, using 0 and 1 as boolean values. To not break anything, I had to take care of that different behaviour.

If there are still no objections, I will create a PR soon.
beedaddy is offline   Reply With Quote
Old 07-26-2024, 12:03 PM   #14
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,705
Karma: 75000000
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Has anyone checked to see if the database schema has changed from Kobo to Tolino?

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 07-30-2024, 04:35 AM   #15
beedaddy
Groupie
beedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoonbeedaddy knows that there *is* no spoon
 
Posts: 181
Karma: 131606
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
Quote:
Originally Posted by PeterT View Post
Has anyone checked to see if the database schema has changed from Kobo to Tolino?
I can only tell about the difference between the dbversion 174 from my Clara 2E and the dbversion 189 from my Tolino Shine 5.

As far as I can tell, a few columns have been added to the content table (isLcpEpub, familySharing, familySharingRelation, subscriptionType, metaDataJson and isAdobeDrm) as well as to the Bookmark table (Color and markupJson).

And then there are a bunch of new tolino_* tables (tolino_author, tolino_bookmark, tolino_bookshelfRevision, tolino_comment, tolino_contentItem, tolino_contentItemPendingDeletions, tolino_dogear, tolino_drmKeysKobo, tolino_skoobeChapter, tolino_tag, tolino_resellerHandshake, tolino_familyMembers, tolino_contentItemExtraData, tolino_recommendations, tolino_contentItemAudioInfo, tolino_downloadInfo, tolino_skoobeReadingTime and tolino_languageConfig).

I've attached a diff.
Attached Files
File Type: txt schema_diff_4.38.23038_vs_5.1.184318.txt (13.8 KB, 80 views)
beedaddy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug with Subtitle in KoboTouch Driver 2.5.1 JSWolf Devices 2 01-01-2021 09:35 AM
It would be good between devices add TOLINO. colo51 Devices 3 07-28-2017 11:31 AM
Tolino II und Tolino-Tablet bereits im Herbst? hamlok Andere Lesegeräte 2 06-19-2013 08:58 AM
KoboTouch Firmware jackastor Kobo Reader 7 11-14-2011 06:19 AM
Touch problems with my kobotouch :( distorteddisco Kobo Reader 7 07-03-2011 09:00 AM


All times are GMT -4. The time now is 09:46 AM.


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