Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2010, 03:55 PM   #1
darkadept
Member
darkadept began at the beginning.
 
Posts: 18
Karma: 10
Join Date: May 2010
Device: Kobo eReader
Kobo sqlite database

Both the eReader and the desktop software stores it's books and meta information in sqlite databases.

Books that are bought from the Kobo book store are not stored as epub files but are stored in a sqlite database. (on the kobo reader it's under the hidden folder .kobo)

Plus, any epub or pdf's you add to the kobo including any that are stored on an sd-card are loaded into this sqlite database. NOTE: The entire epub/pdf is not stored in the database, but things like title, author, chapters, read status, etc are.

I've started analyzing this database format and plan to write a little program to help manage things like cover images, read status (read, unread, finished), etc.
Is anyone interested in something like this?

Plus if anyone wants, I'll post my documentation on the sqlite database schema.
darkadept is offline   Reply With Quote
Old 05-03-2010, 04:02 PM   #2
lchen
Connoisseur
lchen began at the beginning.
 
Posts: 51
Karma: 12
Join Date: May 2010
Device: Kobo EReader
Yes, it's an excellent idea!
lchen is offline   Reply With Quote
 
Enthusiast
Old 05-03-2010, 05:16 PM   #3
anidel
Zealot
anidel doesn't litteranidel doesn't litter
 
Posts: 108
Karma: 188
Join Date: May 2010
Location: Montreal, QC
Device: Kobo,Nokia N900
Indeed a good idea.. post your findings.

Thanks
anidel is offline   Reply With Quote
Old 05-03-2010, 05:38 PM   #4
somecanuck
Enthusiast
somecanuck is on a distinguished road
 
Posts: 35
Karma: 64
Join Date: Apr 2010
Device: none
I like it. You could easily write your own desktop syncing application that way.
somecanuck is offline   Reply With Quote
Old 05-03-2010, 07:01 PM   #5
yawar
Member
yawar began at the beginning.
 
yawar's Avatar
 
Posts: 11
Karma: 10
Join Date: May 2010
Device: Kobo eReader
Kobo manager program

Quote:
Originally Posted by darkadept View Post
...
I've started analyzing this database format and plan to write a little program to help manage things like cover images, read status (read, unread, finished), etc.
Is anyone interested in something like this?

Plus if anyone wants, I'll post my documentation on the sqlite database schema.
Darkadept, do you want to create a project on GitHub/BitBucket/Launchpad for your Kobo manager program? What are you planning to write it with: Qt, Java, .Net, ... ? I'd be willing to help out if I could.
yawar is offline   Reply With Quote
Old 05-03-2010, 07:48 PM   #6
PeterT
Taking a break; Fed up
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: 6,981
Karma: 44005669
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Fantastic idea! I had done some snooping through the database; both the one stored on the Kobo and the local copy on the PC (under Vista it's in the
Code:
%LOCALAPPDATA%/Kobo/Kobo Desktop Edition
directory
PeterT is offline   Reply With Quote
Old 05-03-2010, 08:29 PM   #7
darkadept
Member
darkadept began at the beginning.
 
Posts: 18
Karma: 10
Join Date: May 2010
Device: Kobo eReader
Yup I have a user on launchpad. I'll create a project either later tonight or tomorrow morning/

I prefer C++ with Qt as that is what i'm most familiar with.
darkadept is offline   Reply With Quote
Old 05-03-2010, 11:42 PM   #8
yawar
Member
yawar began at the beginning.
 
yawar's Avatar
 
Posts: 11
Karma: 10
Join Date: May 2010
Device: Kobo eReader
Koboko?

I assume this is it: https://launchpad.net/koboko

Downloading Bzr on my Mac now :-)

Oh, and Qt/C++ sounds good.

Cheers
yawar is offline   Reply With Quote
Old 05-04-2010, 01:08 AM   #9
srid
Member
srid began at the beginning.
 
srid's Avatar
 
Posts: 20
Karma: 10
Join Date: May 2010
Location: North Vancouver, BC
Device: Kindle 2
Hmm, not Python, eh?
srid is offline   Reply With Quote
Old 05-04-2010, 11:13 AM   #10
JCSullivan
Chief Inspector Gamache
JCSullivan began at the beginning.
 
JCSullivan's Avatar
 
Posts: 123
Karma: 12
Join Date: May 2010
Location: Canada eh!
Device: Viewsonic
Quote:
Originally Posted by darkadept View Post
Is anyone interested in something like this?

Plus if anyone wants, I'll post my documentation on the sqlite database schema.
Quote:
Originally Posted by yawar View Post
Darkadept, do you want to create a project on GitHub/BitBucket/Launchpad for your Kobo manager program? What are you planning to write it with: Qt, Java, .Net, ... ? I'd be willing to help out if I could.
Thanks a lot guys looks like something we could all use. Hope it will have an easier or is that friendlier GUI for those of us savvy but not techie.

Thanks
JCSullivan is offline   Reply With Quote
Old 05-04-2010, 12:04 PM   #11
darkadept
Member
darkadept began at the beginning.
 
Posts: 18
Karma: 10
Join Date: May 2010
Device: Kobo eReader
Ok I set up a project on launchpad and created a team. It's my first launchpad project so if I configured something not your liking let me know.

Project is found here: https://launchpad.net/koboko
Team is found here: https://launchpad.net/~koboko

My next question is what do people want/need? Some of the things I have thought of is:
  • the ability able to sync between the desktop application and the eReader
  • the ability to change infos such as read status, etc.
  • the ability to remove books from the device/application.
  • ??

I don't really intend to create a Calibre clone or to completely replace the Kobo desktop software.

any ideas?
darkadept is offline   Reply With Quote
Old 05-04-2010, 06:36 PM   #12
yawar
Member
yawar began at the beginning.
 
yawar's Avatar
 
Posts: 11
Karma: 10
Join Date: May 2010
Device: Kobo eReader
Quote:
Originally Posted by darkadept View Post
Ok I set up a project on launchpad and created a team. It's my first launchpad project so if I configured something not your liking let me know.

Project is found here: https://launchpad.net/koboko
Team is found here: https://launchpad.net/~koboko

My next question is what do people want/need? Some of the things I have thought of is:
  • the ability able to sync between the desktop application and the eReader
  • the ability to change infos such as read status, etc.
  • the ability to remove books from the device/application.
  • ??
+ Properly edit ePub metainfo (title & author).

+ Maintain a master copy of the SQLite database on the user's hard disk, so all changes (books/documents added/removed/edited) are made into that first and then sent to the Kobo device's copy of the database (or maybe it's done simultaneously).

+ Wish list: if only there were some way to prevent the device from locking and updating its database on disconnect--seems like bad design. Maybe that'll change if smarter software comes along to manage the DB while it is connected.

Quote:
Originally Posted by darkadept View Post
I don't really intend to create a Calibre clone or to completely replace the Kobo desktop software.

any ideas?
Sounds good. Calibre has a bit of a busy interface and a built-in ebook viewer. I don't think we need that. I do think we can do better than the Kobo desktop software when it comes to ease of use in managing books & documents. E.g., I still haven't been able to get the desktop software to show me all the books and documents I've loaded into my reader.

Design-wise, the simplest thing I can think of is a list-detail view where the list of books/documents is on top and the detail (a data entry form) is at the bottom. Is anything else needed? I doubt it....

Thanks for setting up. I'm joining right now.
yawar is offline   Reply With Quote
Old 05-05-2010, 05:48 AM   #13
JCSullivan
Chief Inspector Gamache
JCSullivan began at the beginning.
 
JCSullivan's Avatar
 
Posts: 123
Karma: 12
Join Date: May 2010
Location: Canada eh!
Device: Viewsonic
From a USER point - Thanks guys.

What will happen IF Kobo decides to change their db structure (can they do that) when releasing a new firmware? Is that a stupid question - sorry.
JCSullivan is offline   Reply With Quote
Old 05-06-2010, 03:42 PM   #14
darkadept
Member
darkadept began at the beginning.
 
Posts: 18
Karma: 10
Join Date: May 2010
Device: Kobo eReader
They absolutely can change their db structure. From what it looks like they use a table called "DBVersion" that contains a single number that would be increased when they change formats. We'll just have to make sure we watch that number and not allow writes if the schema is different. Backups are always a good thing too!!!!!

I've got a few notes here -> https://sites.google.com/a/durbn.net...atabase-schema.

I know it's not an open wiki. My webserver is down at the moment but the second I get it up I'll set up a proper mediawiki for it. Hopefully after this weekend sometime.

I've been adding a bit of code to the app. It's still to early for any real use yet.
darkadept is offline   Reply With Quote
Old 05-06-2010, 05:09 PM   #15
corona
Addict
corona knows what's going on.corona knows what's going on.corona knows what's going on.corona knows what's going on.corona knows what's going on.corona knows what's going on.corona knows what's going on.corona knows what's going on.corona knows what's going on.corona knows what's going on.corona knows what's going on.
 
corona's Avatar
 
Posts: 324
Karma: 25168
Join Date: May 2010
Device: kobo
I just used SQLite Expert -- free graphical sqlite program -- and opened up the database to delete dozens of the freebie books -- worked great.

(But does this actually get rid of the book data itself??) (Oops. How embarrassing.)

Last edited by corona; 05-06-2010 at 05:55 PM.
corona is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sqlite database replacement instructions pholy Kobo Reader 62 10-11-2012 09:19 AM
Koboreader.sqlite gundged maxwelledison Kobo Reader 21 01-12-2011 08:24 AM
Calibre and Kobo database crowez Calibre 1 10-15-2010 08:24 PM
Kobo Database Browser - SQLite JBlyth Kobo Reader 2 06-06-2010 09:27 PM
sqlite samba lock rootto Calibre 4 09-27-2009 02:03 PM


All times are GMT -4. The time now is 11:57 AM.


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