01-25-2013, 08:53 AM | #16 |
creator of calibre
Posts: 44,333
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@PeterT: And the books did not match? Hmm, I've made a possible fix for the issue, though I don't really understand it nor can I reproduce it. I will upload a build with the fix in a little while, or if you are running from source you can update yourself. Let me know if it fixes it.
|
01-25-2013, 08:59 AM | #17 |
creator of calibre
Posts: 44,333
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I think I know what is going on, the SONY T1/T2 and Kobo drivers use a different format for returning the books thumbnail, which causes the the new code to error out leading to failed matches. I've adjusted the code to take that into account, hopefully that will fix it.
|
01-25-2013, 09:27 AM | #18 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Kovid: Peter beat me with the log. Mine was the same. I also realised I was wrong about the cause, which caused a few extra tests. Somewhere in there I also saw the error DrChiper reported when changing library while the device was connected.
Anyway, I've updated my source and run using that. Both Kobo devices are working correctly. The books are shown on the device correctly, I've sent a few books and I have changed the library a couple of times. I didn't see any errors. I assume this means that I Kobo devices won't get the performance improvement you put in. I'll have a look at the thumbnails in the driver and see what is different. Thanks for the quick fix. |
01-25-2013, 09:35 AM | #19 | |
Resident Curmudgeon
Posts: 75,860
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
01-25-2013, 10:35 AM | #20 |
Groupie
Posts: 196
Karma: 1086780
Join Date: Jul 2012
Device: Kobo H2O Ed. 2, Glo HD, Glo, Touch
|
Not to pester but I'd also like to know if I should wait to download.
|
01-25-2013, 10:49 AM | #21 |
creator of calibre
Posts: 44,333
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'll post here when the upload of 0.9.16 with the fix finishes. My internet connection has very low upload speeds.
|
01-25-2013, 10:56 AM | #22 |
creator of calibre
Posts: 44,333
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@davidfor: It wasn't my code, the credit, or blame, goes to chaley I'll leave it up to him to comment on how to handle thumbnails in the device drivers. Looking at the interface specification in devices.interface.BookList what the kobo driver is returning is correct.
|
01-25-2013, 11:07 AM | #23 |
Resident Curmudgeon
Posts: 75,860
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
01-25-2013, 11:32 AM | #24 |
creator of calibre
Posts: 44,333
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Fixed builds uploaded. Re-download and re-install and hopefully you will be fine.
|
01-25-2013, 11:38 AM | #25 |
Resident Curmudgeon
Posts: 75,860
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I'll give it a try on Sunday night and see how it goes. I'kk be away from the computer and all I'll have access to is an iPad. Should I backup the contents of the T1 just in case?
Last edited by JSWolf; 01-25-2013 at 11:41 AM. |
01-25-2013, 11:39 AM | #26 |
creator of calibre
Posts: 44,333
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This bug does not affect the contents of your reader, only the metadata.calibre file and by extension the on device column in calibre.
|
01-25-2013, 12:21 PM | #27 | |
Grand Sorcerer
Posts: 11,936
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The assumption made by my code was that a thumbnail in a device book dict was made by gui2.device.cover_to_thumbnail. This was true for all the devices I have and have looked at, so my testing didn't find the (apparently) two devices that do something else. Details: cover_to_thumbnail returns a 3-element tuple (width, height, image_bytes). One part of the optimization, the part that won't be done for Sony Tx and Kobo devices, was to check that the existing thumb is the size requested by the device. If it is not, then the thumbnail is regenerated and the book dict updated. If it is the same size and if nothing else in the mi structure has changed since the book's metadata was sent to the device (the other part of the optimization), then that book is left alone, saving a substantial amount of computation. In my testing the time savings was approximately 0.01 second per book on the device that did not need updating. YMMV depending on processor speed and memory available. If the device can change the size of the thumbnail either "by itself" (e.g., a smart device) or by the user changing some preference, then if the tuple is not used it is possible that the thumbnail will not be updated upon connect. This is the incorrect result mentioned above. Another possibility: if the device depends on receiving a tuple but does not return a tuple, then the device might be surprised by receiving something unexpected, the value it put into the book dict. |
|
01-25-2013, 11:47 PM | #28 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@chaley: Thanks. it sounds like it is right for the Kobo devices. I'll still have a look as I haven't looked at the thumbnail stuff before.
|
01-25-2013, 11:50 PM | #29 |
Resident Curmudgeon
Posts: 75,860
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
So if the thumbnail does not exist for an ePub that loaded on a T1, will the thumbnail be created?
Also, if an ePub is deleted from a T1 using Calibre, will the thumbnail also be deleted. Next questions are device independent. The default Calibre settings for sending an eBook to the device is to create a subdirectory and put the eBook there. If Calibre is not used to delete the eBook, will Calibre delete these empty subdirectories? If Calibre is used to delete an eBook, does that subdirectory and all associated file(s) get deleted? Last edited by JSWolf; 01-25-2013 at 11:55 PM. |
01-25-2013, 11:57 PM | #30 |
Resident Curmudgeon
Posts: 75,860
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Has anyone used the updated 0.9.16 with a T1? If so, does the fix work?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to direct Library books to Calibre instead of Sony Reader Library | onebookie | Calibre | 3 | 07-19-2010 11:31 AM |
Hiding books on your Sony reader | flyash | Sony Reader | 24 | 06-21-2010 04:18 PM |
Where do you get books for your Sony Reader? | kcnightfang | Sony Reader | 18 | 12-17-2009 03:13 PM |
Can Calibre be used for books from Sony bookstore? | new | Calibre | 33 | 12-14-2009 05:47 PM |
Why is the reader slower with Calibre books? | rnfuller | Calibre | 4 | 10-23-2008 07:03 PM |