Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2017, 08:16 AM   #1
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Manually adding book to database

I am working on a standalone, command-line tool to update series metadata on a Kobo eReader (you can see my progress so far here). I would like to be able to update the metadata, even if the user has not actually imported the book yet.

Is it possible to manually import a book to the Kobo, and if so, is just adding the it to the content table sufficient?
geek1011 is offline   Reply With Quote
Old 10-23-2017, 08:36 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by geek1011 View Post
Is it possible to manually import a book to the Kobo, and if so, is just adding the it to the content table sufficient?
Yes, it is possible, and I have done it in the dim distant past. There are enough issues with it, that I just didn't find it worthwhile or want to maintain it as the database changed. But, if you do it, you also need to add rows to the table volume_shortcovers.
davidfor is offline   Reply With Quote
Advert
Old 10-23-2017, 09:17 AM   #3
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by davidfor View Post
Yes, it is possible, and I have done it in the dim distant past. There are enough issues with it, that I just didn't find it worthwhile or want to maintain it as the database changed. But, if you do it, you also need to add rows to the table volume_shortcovers.
Ok, that seems straightforward enough.

What were the issues with it? I do not seem to see any obvious ones.
geek1011 is offline   Reply With Quote
Old 10-23-2017, 06:57 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by geek1011 View Post
Ok, that seems straightforward enough.

What were the issues with it? I do not seem to see any obvious ones.
You've worked out exactly what goes into each column of the contents table? For each book format? And exactly what to do about the table of comments? And how to handle the changes that have happened with different firmware versions?

From my experience, it wasn't reliable. I could do it, but frequently the book would get imported anyway. The creator of the KoboTouchExtended driver tried as well. We both decided it wasn't worth the hassle. I probably know more about it now then when I first tried, but, again, I just don't think there is enough gain to make it worth the effort.
davidfor is offline   Reply With Quote
Old 10-24-2017, 09:35 AM   #5
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by davidfor View Post
You've worked out exactly what goes into each column of the contents table? For each book format? And exactly what to do about the table of comments? And how to handle the changes that have happened with different firmware versions?

From my experience, it wasn't reliable. I could do it, but frequently the book would get imported anyway. The creator of the KoboTouchExtended driver tried as well. We both decided it wasn't worth the hassle. I probably know more about it now then when I first tried, but, again, I just don't think there is enough gain to make it worth the effort.
I think I have figured out most of the columns but I am still testing. I am only planning to use ePub and kepub files. I am only planning to support the latest firmware version, and whichever one I use.

The other alternative for my use case is to inject a helper script as a update which would perform the database changes after the content is imported. Do you think this would be an easier option?
geek1011 is offline   Reply With Quote
Advert
Old 10-24-2017, 04:05 PM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by geek1011 View Post
I think I have figured out most of the columns but I am still testing. I am only planning to use ePub and kepub files. I am only planning to support the latest firmware version, and whichever one I use.
That will cut down on the work needed.
Quote:
The other alternative for my use case is to inject a helper script as a update which would perform the database changes after the content is imported. Do you think this would be an easier option?
If you can get it run at the right time, it should work. I've never really looked at it.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura HD Help with corrupted database - Manually fix (easy, please)? arspr Kobo Reader 6 06-25-2014 10:47 AM
How to manually fix a (probably) corrupted database? Lucas Malor Kobo Reader 13 05-09-2013 08:01 PM
Manually adding different formats of a book murali Calibre 4 12-02-2010 02:17 PM
Manually add/delete ebooks to a database sariel2413 Calibre 3 03-18-2010 04:45 PM
manually editing database teje Calibre 9 02-05-2010 02:11 AM


All times are GMT -4. The time now is 08:40 PM.


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