Hi Kobo fans!
I made this script to simplify epub to kepub.epub conversion with correct ebook cover. It's based on Daniel Andrei's explanations in his blog : http://dsandrei.blogspot.fr/2012/07/koboish-ebooks.html
This script is safe as it backs up KoboReader.sqlite database.
It must be launched from the root of your Kobo drive. Delete .txt from file name and run it as any bash script.
What does this script do?
1 - First it changes ext file from epub to kepub.epub then it asks to unplug and replug your kobo.
2 - It looks for cover file inside kepub.epub file ( you can specify cover file in arguments)
3 - It generates 5 prased files and copy them in .kobo/image folder
4 - It backs up database
5 - sqlite3 $kobo_db "UPDATE content SET ImageId='"$cover_name"' WHERE ContentType=6 AND ContentID LIKE '%"$ebook_name"%';"
I already tested it on my Kobo Glo (by Fnac) 2.3.1 with Ubuntu 12.04 and everything works OK. You don't have to restart your Kobo to see your book cover updated.
PS: In ebook name file, please do not use spaces or special caracters.
Please give this script a try and send me your feedbacks.
:thanks:
--------------
Issues:
1- ./koboish: 99: sqlite3: not found
You have to install sqlite3 : sudo apt-get install sqlite3
2- on a KDE Redhat distro, I faced some permissions issue fixed by using su mode
I made this script to simplify epub to kepub.epub conversion with correct ebook cover. It's based on Daniel Andrei's explanations in his blog : http://dsandrei.blogspot.fr/2012/07/koboish-ebooks.html
This script is safe as it backs up KoboReader.sqlite database.
It must be launched from the root of your Kobo drive. Delete .txt from file name and run it as any bash script.
What does this script do?
1 - First it changes ext file from epub to kepub.epub then it asks to unplug and replug your kobo.
2 - It looks for cover file inside kepub.epub file ( you can specify cover file in arguments)
3 - It generates 5 prased files and copy them in .kobo/image folder
4 - It backs up database
5 - sqlite3 $kobo_db "UPDATE content SET ImageId='"$cover_name"' WHERE ContentType=6 AND ContentID LIKE '%"$ebook_name"%';"
I already tested it on my Kobo Glo (by Fnac) 2.3.1 with Ubuntu 12.04 and everything works OK. You don't have to restart your Kobo to see your book cover updated.
PS: In ebook name file, please do not use spaces or special caracters.
Please give this script a try and send me your feedbacks.
:thanks:
--------------
Issues:
1- ./koboish: 99: sqlite3: not found
You have to install sqlite3 : sudo apt-get install sqlite3
2- on a KDE Redhat distro, I faced some permissions issue fixed by using su mode