View Single Post
Old 04-27-2013, 07:45 AM   #151
davidfor
Wizard
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: 4,832
Karma: 4772844
Join Date: Jul 2011
Location: Australia
Device: Kobo Touch, Kobo Glo
Quote:
Originally Posted by jackie_w View Post
My SaveTemplate does include Series info
Code:
Books/{author_sort} - {series}{series_index:0>2s| | - }{title}
I also have a metadata plugboard remapping Author in case that's relevant.

OK, but I'll remove the save template/plugboard variables first and see how that goes.
The plugboard doesn't affect this. If it is what I think it is, then it is related to the save template. And it usually only happens to books that are on the device that calibre doesn't know about.
Quote:
Neither of the 'no longer detected' books have multiple authors. Only one of my current books on the Glo has multiple authors but it has no series and does have the 'series set to first char of title' problem.
Ok, the multiple authors can break the matching sometimes. Can you send me the metadata.calibre file from the device? Plus the name of some of the books with problems.
Quote:
That would be nice to have but don't put it high on your to-do list on my account.
I have a couple of little bugs to fix, then I'll do this. Or maybe I'll read a book
Quote:
Here is some extra info:
All the books are standard epub with no DRM.

In case my problems are self-inflicted perhaps this is also relevant. Whilst the normal workflow would be:
1. Connect and send-to-disk
2. Disconnect and let reader process new books.
3. Repeat connect/disconnect
I have been adding a semi-automated process (not via calibre code) between 1 and 2. For each newly-sent book on the Kobo disk
- open epub
- append kobo-specific css to existing css file
- rebuild epub in situ
Both file date/time and filesize will therefore increase slightly. Understanding the logic of how things work, can you see why this might cause problems? I would add that I have been doing this for months on fw v2.1.5 with no apparent problems.
None of that should cause any problems. I do this occasionally when testing things. As long as the epub is still valid, it should be loaded OK.
Quote:
I also tried adding my extra process after connecting for a 3rd time, but on disconnect the Glo deleted all updated epubs. This method also used to work OK on v2.1.5
This will cause problems. Across the firmware versions, the books have been checked for changes. And sometimes deleted. What was checked has changed. With recent firmware, it is the file size. If the file size does not match what is in the database, all evidence of the book will be removed. I put a change in the driver a while ago that updates the size when a book is resent to the device. Your changes after sending the book will probably change the file size. You can fix that by updating the database.

I do something like this for some books I download from a couple of sites. But, I do it in the library. I hacked the Modify ePub plugin to replace the CSS file plus do a couple of other tweaks. Otherwise, I just edit them in Sigil or using Tweak books. If you have any Python skills, have a look at the extended plugin. It makes changes after the epub is copied. And because it subclasses the main driver, it inherits all the other function. It wouldn't be hard to take this and change it to replacing something else in the epub.
Quote:
I don't expect the Kobo driver to be changed to accommodate my niche requirements but some understanding of problems I may be creating for myself would be appreciated. I can probably find a workaround if I have to.
No, but when you discuss things like this, you frequently get others saying they do it as well. And you might give me an idea.
davidfor is online now   Reply With Quote