Thread: Kobo Patcher
View Single Post
Old 11-26-2013, 08:42 PM   #519
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
I've made a patch to fix a little bug that is annoying me in firmware 2.10.0/3.0.0/3.0.1. The bug occurs when I long-press a book in my Glo's library and select the "View Details" menu item. The page that is displayed has a book cover image, but instead of using the N3_LIBRARY_FULL image file that usually already exists on the device, a new one named AndroidBookLoadTablet_Aspect is generated or downloaded. This causes two problems:

1. If the book is a Kobo-bought kepub, then the new image has to be downloaded from the server. This means that if I have wifi turned off I don't see a cover image on the details page, just a box with the title. The new image is not saved after it is downloaded, so it will have to be downloaded again once it leaves the cache.

2. If the book is a sideloaded epub then an ugly new cover image is generated from the first page of the book, instead of using the nice image I sent from Calibre when I sideloaded the book. The new cover is saved though.

The patch works by changing the file name of the new image to match the old one, so when the device checks whether the new file needs to be generated/downloaded it finds the old one already exists and uses that.

Patch for 3.0.1 (644485e229) (tested on my Glo):
Spoiler:
Code:
<Patch>
patch_name = `Avoid generating/downloading redundant cover image`
patch_enable = `yes`
replace_string = 10F91A4, `AndroidBookLoadTablet_Aspect`, `N3_LIBRARY_FULL`
</Patch>

Patch for firmware 3.0.0 (0cbc3626b3) (not tested):
Spoiler:
Code:
<Patch>
patch_name = `Avoid generating/downloading redundant cover image`
patch_enable = `yes`
replace_string = 11065D8, `AndroidBookLoadTablet_Aspect`, `N3_LIBRARY_FULL`
</Patch>
GeoffR is offline   Reply With Quote