03-31-2015, 06:20 AM | #916 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
When you disconnect the Kobo ereader from the PC, it looks for changes in the books. Any new books will be processed into the internal database and hence the library. Any books that have been deleted, will have nearly all evidence of them removed from the database. Any changed books will be removed from the database and then processed as a new book.
The behaviour of the last one has changed over time. Early firmware didn't do anything. Current firmware does the above. For this, what the firmware considers as changed is the file size. That means you could unpack an epub and repack it without any other changes and get a different size. Or open it, change one letter somewhere in the text and repack it and the device will see it as a new book. Because of this, when you send a book to a Kobo device that is already on the device, the driver will update the files size stored in the database. I chose to do this in the driver because that kept older behaviour, and my impression from discussion here is that how people wanted it to work. And to be honest, it is how I wanted it to work. I frequently edit books I read to fix spelling and layout. As long as I don't fiddle with the internal file structure or the ToC, everything will work OK. If you make changes to the ToC or the internal file structure, the book can probably still be read, but, there might be problems. One of the things that the processing of the book does is to store the ToC in the database. If you open the ToC when reading the book, the database is used. If it doesn't match the book, selecting an entry will probably take you to the start of the book. If the file structure changes, again the book can probably be read. But, the ToC won't work and the reading position won't be stored properly. That means it will probably reopen to the start of the book. None of this has anything to do with the utilities plugin. It's how the device works and how the driver works. |
03-31-2015, 11:41 AM | #917 |
Connoisseur
Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
Hi, thanks for your precise answer.
you said : " I chose to do this in the driver because that kept older behaviour, and my impression from discussion here is that how people wanted it to work." If this is not related to kobo utilities plug-in, then why are you implicated in the driver ? What driver are we talking about ? windows driver ? calibre driver to access kobo ? |
Advert | |
|
03-31-2015, 02:10 PM | #918 |
Grand Sorcerer
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
davidfor is both one of the co-authors of the Kobo calibre device driver, the author of Kobo Utilities, and is involved with a myriad of other plugins too.
Probably he has more knowledge of the Kobos and their database than anyone outside of Kobo itself. |
03-31-2015, 04:07 PM | #919 |
Connoisseur
Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
OK it was what i was thinking about but wasn't sure. Thanks for explanation. So we are talking about calibre kobo driver :-)
But there is one point that I'm missing and I'm sorry because it is then no more related to kobo utilities. Why it is important that kobo don't refresh it database when the same (modified or not) epub is loaded. For processing time ? Or for another purpose ? And big question, Is the behavior you described with epub the same with PDF ? |
03-31-2015, 05:46 PM | #920 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
Advert | |
|
03-31-2015, 07:23 PM | #921 | |||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
|
|||
04-01-2015, 03:51 AM | #922 |
Connoisseur
Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
Thanks a lot.
So, kobo driver modifie filesize so that kobo don't see the epub/pdf as modified to save kobo processing time. But what if epub is really modified, kobo driver can't know it so we have to remove it manually from kobo, disconnect and then reconnect and add the new one. right ? And what if the new modified epub is added in calibre as the new epub (with same title and author as the old one, toc may be modified, and metadata that indicate version number), is the behavior the same ? Because I do modification in pdf and epub outside calibre and then add the new modified file in calibre. do you prefer me to ask those question in private messages so that this thread is not "polluted" ? |
04-01-2015, 07:18 AM | #923 | ||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The driver updates the file size when the book is replaced so that it won't be removed. It doesn't matter what was done with the book. It could have been edited using the calibre editor, Sigil or something else. Or a new copy downloaded from somewhere. Doing this is a risk. If the book has changed to much, then it could cause problems. But, if it isn't done, there is no way to replace a book and not lose the reading status, bookmarks and collections. You can get around this by removing the book first. Quote:
|
||
04-01-2015, 12:37 PM | #924 |
Connoisseur
Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
Hi, thanks a lot this is pretty clear.
So concerning books that are not modified but only tags modified in calibre, If i want the creation in kobo of collection for new tag, I only have to reload to the kobo all books. I will have a to wait USB transfer (lot of PDF) but maybe no processing time in the kobo and no reading status deletion. Right ? There is nothing in kobo driver that detect that Filesize is the same in database and in calibre so there is no need to send the file again ? By the way where is the thread concerning kobo driver? In this forum ? In another one ? I believe I must check kobo driver support somewhere before upgrading kobo firmeware... |
04-01-2015, 08:12 PM | #925 | |||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
As to firmware upgrades, I keep the driver up to date and will announce anything problems as soon as possible after the firmware is released. That usually happens on the same day of the release. Part of why I can do this is that I am on the firmware beta testing list and get them to test. I test this with calibre and look for anything new we might want to use. The other reason is that Kobo hasn't made many changes recently that affect how calibre interacts with the device. Generally, I test and bump the supported firmware version number in the driver and that's it. |
|||
04-06-2015, 06:31 PM | #926 |
Connoisseur
Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
thanks a lot for so much details.
|
04-26-2015, 06:28 AM | #927 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Update to Kobo Utilities plugin - V2.0.6 - Fix a backup problem and add Select/Clear
I have just updated the plugin to version 2.0.6. This has two small changes
As usual, calibre will notify you of the update in the next hour or so. And if there are any problems, please report them here. |
04-28-2015, 12:00 AM | #928 |
Member
Posts: 11
Karma: 10
Join Date: Sep 2013
Device: Kobo Aura
|
Hi David, I just updated calibre to 2.26, and the Kobo Utilities plugin to 2.0.6 and received the following error when backing up the database and the page positions:
Code:
[Errno 32] Broken pipe Traceback (most recent call last): File "site-packages/calibre/gui2/device.py", line 87, in run File "calibre_plugins.koboutilities.jobs", line 145, in do_device_database_backup File "calibre_plugins.koboutilities.jobs", line 42, in debug_print File "site-packages/calibre/utils/logging.py", line 154, in prints File "site-packages/calibre/utils/logging.py", line 45, in prints File "site-packages/calibre/__init__.py", line 227, in prints IOError: [Errno 32] Broken pipe Code:
Result of running 'PRAGMA integrity_check' on database on the Kobo device: ok Ugh... it may be more of a problem. Tried to transfer a book to the Kobo and got this: Code:
calibre, version 2.26.0 ERROR: Error: Error communicating with device Failed to find obfuscation key Traceback (most recent call last): File "site-packages/calibre/gui2/device.py", line 87, in run File "site-packages/calibre/gui2/device.py", line 584, in _upload_books File "calibre_plugins.kobotouch_extended.device.driver", line 285, in upload_books File "site-packages/calibre/devices/kobo/driver.py", line 1913, in upload_books File "calibre_plugins.kobotouch_extended.device.driver", line 179, in _modify_epub File "site-packages/calibre/ebooks/oeb/polish/container.py", line 977, in __init__ File "site-packages/calibre/ebooks/oeb/polish/container.py", line 1093, in process_encryption ObfuscationKeyMissing: Failed to find obfuscation key Last edited by Grady Cole; 04-28-2015 at 12:15 AM. |
04-28-2015, 12:54 AM | #929 | ||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
04-28-2015, 12:59 AM | #930 |
Member
Posts: 11
Karma: 10
Join Date: Sep 2013
Device: Kobo Aura
|
I'm on 10.8.5, and I'm running in 64-bit.
Also just got this error when I opened the book in the calibre reader: Code:
calibre, version 2.26.0 ERROR: Unhandled exception: <b>IOError</b>:[Errno 32] Broken pipe calibre 2.26 isfrozen: True is64bit: True Darwin-12.6.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '12.6.0', 'Darwin Kernel Version 12.6.0: Wed Dec 17 19:11:40 PST 2014; root:xnu-2050.48.15~1/RELEASE_X86_64') Python 2.7.9 OSX: ('10.8.5', ('', '', ''), 'x86_64') Successfully initialized third party plugins: DeDRM && KePub Output && Kobo Utilities && KoboTouchExtended && Modify ePub Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 209, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/utils/ipc/worker.py", line 199, in main IOError: [Errno 32] Broken pipe Last edited by Grady Cole; 04-28-2015 at 01:09 AM. |
Tags |
kobo, kobo utilities |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Manga plugin | mastertea | Plugins | 6 | 01-06-2022 02:43 AM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
Kobo Utilities Plugin Question | nikev | Kobo Reader | 10 | 09-25-2018 11:55 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |