View Single Post
Old 04-23-2025, 04:12 PM   #19
JeanC
Connoisseur
JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.JeanC can self-interpret dreams as they happen.
 
JeanC's Avatar
 
Posts: 57
Karma: 20316
Join Date: Nov 2010
Location: Netherlands
Device: Kobo Libra 2
I got most of my info from working with claude.ai and others. Lots of trial and error, then i asked it to go search github for how the calibre kobo driver does it, and i had an addon called autoshelf, who did a similar thing.
Conclusion, to add/modify collections you are dealing with tables shelf and shelfcontent. The main table however, content, should be left alone, the kobo handles that on reconnect.

I included my main.cpp, i'm open to suggestion, have been thinking like putting it up on github if there's interest.

Quote:
Originally Posted by PeterT View Post
Actually the filename is the fully qualified name; not just the epub. So for instance my testing had
Code:
INSERT INTO ShelfContent(rowid,ShelfName,ContentId,DateModified,_IsDeleted,_IsSynced) VALUES(381,'ToReadSoon','file:///mnt/onboard/Lawrence, Mark/Grey Sister - Mark Lawrence.epub','2025-04-23T17:56:53Z','false','false');
JeanC is offline   Reply With Quote